Add date and time reminder to diagnostic screen
Summary: I got tripped up again with a physical iOS device that had the wrong date and time. SSL certs won't be valid. Adds a reminder to the diagnostic screen for anyone running into this in future. Reviewed By: passy Differential Revision: D14132411 fbshipit-source-id: 623120ef5252eae3e2fe0f6f653074f586f17e0e
This commit is contained in:
committed by
Facebook Github Bot
parent
ce7287f08b
commit
81e8b7982b
@@ -134,9 +134,16 @@ void FlipperConnectionManagerImpl::startSync() {
|
||||
step->fail(
|
||||
"No route to flipper found. Is flipper desktop running? Retrying...");
|
||||
} else {
|
||||
log(e.what());
|
||||
if (e.getType() == folly::AsyncSocketException::SSL_ERROR) {
|
||||
auto message = std::string(e.what()) +
|
||||
"\nMake sure the date and time of your device is up to date.";
|
||||
log(message);
|
||||
step->fail(message);
|
||||
} else {
|
||||
log(e.what());
|
||||
step->fail(e.what());
|
||||
}
|
||||
failedConnectionAttempts_++;
|
||||
step->fail(e.what());
|
||||
}
|
||||
reconnect();
|
||||
} catch (const std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user