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>
Reviewed-on: https://chromium-review.googlesource.com/1230983
Reviewed-by: Martin Roth <martinroth@chromium.org>
Commit-Queue: Martin Roth <martinroth@chromium.org>
Tested-by: Martin Roth <martinroth@chromium.org>
This commit is contained in:
Nick Sanders 2018-09-07 11:00:04 -07:00 committed by ChromeOS Commit Bot
parent a5ae5604bd
commit 385e01998c
1 changed files with 2 additions and 1 deletions

View File

@ -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.