Merge pull request #790 from librorumque/moonscript-error
Show Moonscript compile time errors
This commit is contained in:
commit
e016565097
|
@ -1468,7 +1468,7 @@ static const char* execute_moonscript_src = MOON_CODE(
|
||||||
local fn, err = require('moonscript.base').loadstring(...)
|
local fn, err = require('moonscript.base').loadstring(...)
|
||||||
|
|
||||||
if not fn then
|
if not fn then
|
||||||
return err
|
error(err)
|
||||||
end
|
end
|
||||||
return fn()
|
return fn()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue