Signed-off-by: Jean Privat <jean@pryen.org>
# Here we load an process all modules passed on the command line
var mmodules = modelbuilder.parse(arguments)
# Here we load an process all modules passed on the command line
var mmodules = modelbuilder.parse(arguments)
-if mmodules.is_empty then return
+if mmodules.is_empty then
+ toolcontext.check_errors
+ toolcontext.errors_info
+ if toolcontext.error_count > 0 then exit(1) else exit(0)
+end
+
modelbuilder.run_phases
for mmodule in mmodules do
modelbuilder.run_phases
for mmodule in mmodules do