Fix handling of missing auth.txt in the new handler

This commit is contained in:
Perttu Ahola 2012-03-30 23:12:01 +03:00 committed by Nils Dagsson Moskopp
parent def7434226
commit f09a3a427e
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 2 additions and 1 deletions

View File

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