From aef7a35883dd57d2eec61b04bab85d7b01dbe1a8 Mon Sep 17 00:00:00 2001 From: G To Date: Sat, 22 Dec 2018 20:55:35 +0700 Subject: [PATCH] Show Moonscript compile time errors --- src/luaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() );