From: Perttu Ahola Date: Fri, 30 Mar 2012 20:12:01 +0000 (+0300) Subject: Fix handling of missing auth.txt in the new handler X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=29110d5428825d95ea7d2c083cd5a899f1d75104;p=zefram%2Fminetest%2Fminetest_engine.git Fix handling of missing auth.txt in the new handler --- diff --git a/builtin/builtin.lua b/builtin/builtin.lua index 34bda824..7b39effb 100644 --- a/builtin/builtin.lua +++ b/builtin/builtin.lua @@ -1177,7 +1177,8 @@ local function read_auth_file() local newtable = {} local file, errmsg = io.open(minetest.auth_file_path, 'rb') if not file then - error(minetest.auth_file_path.." could not be opened for reading: "..errmsg) + minetest.log("info", minetest.auth_file_path.." could not be opened for reading ("..errmsg.."); assuming new world") + return end for line in file:lines() do if line ~= "" then