summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_luacontroller/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index 500bbbd..4b7d43b 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -827,6 +827,7 @@ local function run(pos, event)
local code = meta:get_string("code")
local ok, errmsg = run_inner(pos, code, event)
if not ok then
+ if not errmsg then errmsg = "(unknown error)" end
terminal_write(pos,"[ERROR] "..errmsg)
reset_meta(pos, code, errmsg)
else