From ac18025d7c03424b4ec38bf38d79026c2d937154 Mon Sep 17 00:00:00 2001 From: Siqi Liu Date: Tue, 5 Jul 2016 09:51:41 -0700 Subject: [PATCH] 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 --- .../main/java/com/facebook/react/modules/core/Timing.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java b/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java index 57ec14bdd..d0ee51cfc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java @@ -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." ); } }