return error status on failed compile

This commit is contained in:
leaf corcoran 2011-09-18 23:23:23 -07:00
parent 8d30ddebac
commit f174d96f2f

2
moonc
View File

@ -285,7 +285,7 @@ else
local success, err = compile_and_write(fname, target_dir..convert_path(fname)) local success, err = compile_and_write(fname, target_dir..convert_path(fname))
if not success then if not success then
print(fname, err) print(fname, err)
break os.exit(1)
else else
msg("Built", fname) msg("Built", fname)
end end