Fix crash when error()ing an invalid value on programming (#418)

This commit is contained in:
beyondlimits 2018-07-18 21:49:34 +02:00 committed by Vitaliy
parent ff73d0e60f
commit 12fb09f452

@ -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