Show Moonscript compile time errors

This commit is contained in:
G To 2018-12-22 20:55:35 +07:00
parent a8d1bdedac
commit aef7a35883
1 changed files with 1 additions and 1 deletions

View File

@ -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()
); );