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:
John Knox
2019-02-19 10:23:54 -08:00
committed by Facebook Github Bot
parent ce7287f08b
commit 81e8b7982b

View File

@@ -133,11 +133,18 @@ void FlipperConnectionManagerImpl::startSync() {
// treat them the same.
step->fail(
"No route to flipper found. Is flipper desktop running? Retrying...");
} else {
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());
failedConnectionAttempts_++;
step->fail(e.what());
}
failedConnectionAttempts_++;
}
reconnect();
} catch (const std::exception& e) {
log(e.what());