Skip to content
Permalink
Browse files

west: zephyr_module: Improved error messaging during west failures

Fixes: #15664

This commit improve error messaging in case `west` list fails.
Previously any error messages and stack trace reported by `west` will
was thrown away by zephyr_module.py.

Now the error, as well as any stack traces, printed by `west` will be
re-printed to the user.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
  • Loading branch information...
tejlmand authored and carlescufi committed Apr 25, 2019
1 parent df357c4 commit 0dd3b421c4c4338fb013416e591b97c031c4bcf3
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/zephyr_module.py
@@ -134,6 +134,7 @@ def main():
# outside a west managed project.
projects = []
else:
print(err.decode(sys.getdefaultencoding()))
# A real error occurred, raise an exception
raise subprocess.CalledProcessError(cmd=p.args,
returncode=p.returncode)

0 comments on commit 0dd3b42

Please sign in to comment.
You can’t perform that action at this time.