main: handle WestNotFound

If a command throws this, we should print a fatal error, not
a stack trace.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-09-16 15:00:22 -07:00 committed by Marti Bolivar
parent 1b70e9b5f9
commit 5f9f6f301f
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,8 @@ class WestApp:
# branches pointing at revisions with invalid manifest
# data in projects that get imported.
log.die('\n '.join(str(arg) for arg in mm.args))
except WestNotFound as wnf:
log.die(str(wnf))
def run_extension(self, name, argv):
# Check a program invariant. We should never get here