Skip to content

Commit

Permalink
Fix crash when error()ing an invalid value on programming (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondlimits authored and numberZero committed Jul 18, 2018
1 parent ff73d0e commit 12fb09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_luacontroller/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ local function on_receive_fields(pos, form_name, fields, sender)
local ok, err = set_program(pos, fields.code)
if not ok then
-- it's not an error from the server perspective
minetest.log("action", "Lua controller programming error: " .. err)
minetest.log("action", "Lua controller programming error: " .. tostring(err))
end
end

Expand Down

0 comments on commit 12fb09f

Please sign in to comment.