diff --git a/src/luaapi.c b/src/luaapi.c index 8327cfd..1cdeca7 100644 --- a/src/luaapi.c +++ b/src/luaapi.c @@ -1468,7 +1468,7 @@ static const char* execute_moonscript_src = MOON_CODE( local fn, err = require('moonscript.base').loadstring(...) if not fn then - return err + error(err) end return fn() );