Merge pull request #790 from librorumque/moonscript-error

Show Moonscript compile time errors
This commit is contained in:
Vadim Grigoruk 2018-12-23 20:05:48 +02:00 committed by GitHub
commit e016565097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(...)
if not fn then
return err
error(err)
end
return fn()
);