Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Jan 16, 2024
1 parent 444deb7 commit 075e678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adbutils/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 075e678

Please sign in to comment.