Change the Exception Message of Time Drift

Summary: We prefer not showing the accurate time information in the exception message of time drift, in order to be able to group this kind of exception only by exception message.

Reviewed By: foghina

Differential Revision: D3515390

fbshipit-source-id: f38bf3091ba749d4daeae24f7d42653b76c3289c
This commit is contained in:
Siqi Liu 2016-07-05 09:51:41 -07:00 committed by Facebook Github Bot 4
parent b046b2d51c
commit ac18025d7c
1 changed files with 2 additions and 4 deletions

View File

@ -227,11 +227,9 @@ public final class Timing extends ReactContextBaseJavaModule implements Lifecycl
long driftTime = Math.abs(remoteTime - deviceTime);
if (driftTime > 60000) {
throw new RuntimeException(
"Debugger and device times have drifted by " + driftTime + "ms. " +
"Debugger and device times have drifted by more than 60s." +
"Please correct this by running adb shell " +
"\"date `date +%m%d%H%M%Y.%S`\" on your debugger machine.\n" +
"Debugger Time = " + remoteTime + "\n" +
"Device Time = " + deviceTime
"\"date `date +%m%d%H%M%Y.%S`\" on your debugger machine."
);
}
}