mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
return error status on failed compile
This commit is contained in:
parent
8d30ddebac
commit
f174d96f2f
2
moonc
2
moonc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user