diff options
author | Nick Sanders <nsanders@chromium.org> | 2018-09-07 11:00:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-08 13:32:44 -0700 |
commit | a426c81612527354a14f45c9a43d9bd1f7fa8d0e (patch) | |
tree | 9881c1133d0595f2fd546753097caaaadb7c0dfe /extra | |
parent | a9a397fa62c4c946c96511356a5e6b6017af932f (diff) | |
download | chrome-ec-a426c81612527354a14f45c9a43d9bd1f7fa8d0e.tar.gz |
servo_updater: more informative error on fail
'Can't detect updater version' is replaced with an error
specifying the failed regex string.
BRANCH=None
BUG=None
TEST=None
Change-Id: Ia3a52ee27e31d0b4aab0d8f04d5cf5f346498c37
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1213556
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/usb_updater/servo_updater.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py index 1c8981efa5..82d2abd88d 100755 --- a/extra/usb_updater/servo_updater.py +++ b/extra/usb_updater/servo_updater.py @@ -137,7 +137,8 @@ def do_updater_version(vidpid, iface, serialno): return 2 else: return 6 - return 0 + raise ServoUpdaterException( + "Can't determine updater target from vers: [%s]" % vers) def findfiles(cname, fname): """Select config and firmware binary files. |