Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index ea86e6d90176beddca6f2f5c7217635793a09f72..6981afcc9afd25710e3abea0b590b564d6b95147 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -1927,7 +1927,8 @@ class AndroidCommands(object): |
# to the device. |
while True: |
if t0 + timeout - time.time() < 0: |
- raise pexpect.TIMEOUT('Unable to enable USB charging in time.') |
+ raise pexpect.TIMEOUT('Unable to disable USB charging in time: %s' % ( |
+ self.GetBatteryInfo())) |
self.RunShellCommand(disable_command) |
if not self.IsDeviceCharging(): |
break |