Skip to content

Commit 0dd3b42

Browse files
tejlmandcarlescufi
authored andcommitted
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 <[email protected]>
1 parent df357c4 commit 0dd3b42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/zephyr_module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def main():
134134
# outside a west managed project.
135135
projects = []
136136
else:
137+
print(err.decode(sys.getdefaultencoding()))
137138
# A real error occurred, raise an exception
138139
raise subprocess.CalledProcessError(cmd=p.args,
139140
returncode=p.returncode)

0 commit comments

Comments
 (0)