mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +00:00
If the ADB command fails (e.g. if you provide the wrong device ID), adb_command raises a CalledProcessError. CalledProcessError doesn't print the output of the failed command, so you get a useless error message. This is relevent here in particular as _setup_ls is the first thing to run an ADB command if a non-IP device ID is provided. Catch the CalledProcessError and instead raise a HostError with the command output in the exception message.