mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 04:55:26 +01:00 
			
		
		
		
	Fix crash when error()ing an invalid value on programming (#418)
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user