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):
7474 if query_ready :
7575 self .inf ("initialized; run `west build` then run `west spdx`" )
7676 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" )
7980
8081 def do_run_spdx (self , args ):
8182 if not args .build_dir :
@@ -110,4 +111,5 @@ def do_run_spdx(self, args):
110111 # create the directory
111112 os .makedirs (cfg .spdxDir , exist_ok = False )
112113
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