mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-27 07:47:30 +01:00
Fix crash when error()ing an invalid value on programming (#418)
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user