File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,9 @@ def do_run_init(self, args):
74
74
if query_ready :
75
75
self .inf ("initialized; run `west build` then run `west spdx`" )
76
76
else :
77
- self .err ("Couldn't create CMake file-based API query directory" )
78
- self .err ("You can manually create an empty file at $BUILDDIR/.cmake/api/v1/query/codemodel-v2" )
77
+ self .die ("Couldn't create CMake file-based API query directory\n "
78
+ "You can manually create an empty file at "
79
+ "$BUILDDIR/.cmake/api/v1/query/codemodel-v2" )
79
80
80
81
def do_run_spdx (self , args ):
81
82
if not args .build_dir :
@@ -110,4 +111,5 @@ def do_run_spdx(self, args):
110
111
# create the directory
111
112
os .makedirs (cfg .spdxDir , exist_ok = False )
112
113
113
- makeSPDX (cfg )
114
+ if not makeSPDX (cfg ):
115
+ self .die ("Failed to create SPDX output" )
You can’t perform that action at this time.
0 commit comments