diff --git a/adbutils/_device.py b/adbutils/_device.py index a531714..b41b053 100644 --- a/adbutils/_device.py +++ b/adbutils/_device.py @@ -244,7 +244,7 @@ def shell2(self, output = self.shell(newcmd, timeout=timeout, encoding=encoding, rstrip=True) rindex = output.rfind(MAGIC if encoding else MAGIC.encode()) if rindex == -1: # normally will not possible - raise AdbError("shell output invalid", output) + raise AdbError("shell output invalid", newcmd, output) returncoode = int(output[rindex + len(MAGIC):]) output = output[:rindex] if rstrip and encoding: