diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2017-05-08 17:33:05 +0300 |
---|---|---|
committer | number Zero <silverunicorn2011@yandex.ru> | 2017-05-08 17:34:30 +0300 |
commit | 564bdc2d9b0f265b4286b3caaf8a9059953ce08b (patch) | |
tree | ed2437a341f907506471557ee3d2a9c76b11bcd1 /mesecons_luacontroller | |
parent | f9ebbdc0fbc9e0d7af0cd84f17444e1c5cb6bc13 (diff) |
Fix crash when error()ing an invalid value
See #337 for details.
Diffstat (limited to 'mesecons_luacontroller')
-rw-r--r-- | mesecons_luacontroller/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 619a837..25273a1 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -478,7 +478,7 @@ local function reset_meta(pos, code, errmsg) local meta = minetest.get_meta(pos) meta:set_string("code", code) code = minetest.formspec_escape(code or "") - errmsg = minetest.formspec_escape(errmsg or "") + errmsg = minetest.formspec_escape(tostring(errmsg or "")) meta:set_string("formspec", "size[12,10]".. "background[-0.2,-0.25;12.4,10.75;jeija_luac_background.png]".. "textarea[0.2,0.2;12.2,9.5;code;;"..code.."]".. |