Fix crash when error()ing an invalid value

This commit is contained in:
beyondlimits 2018-07-18 11:35:08 +02:00
parent ff73d0e60f
commit 4397f3ce6b
1 changed files with 1 additions and 1 deletions

View File

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