diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 23:12:01 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 23:12:01 +0300 |
commit | 29110d5428825d95ea7d2c083cd5a899f1d75104 (patch) | |
tree | eca3cfd0f7bc711a6043cdf622746f2d99608cb9 | |
parent | 462003363f7a80c96142ef1cfa9930c508970870 (diff) | |
download | minetest-29110d5428825d95ea7d2c083cd5a899f1d75104.tar.gz minetest-29110d5428825d95ea7d2c083cd5a899f1d75104.tar.bz2 minetest-29110d5428825d95ea7d2c083cd5a899f1d75104.zip |
Fix handling of missing auth.txt in the new handler
-rw-r--r-- | builtin/builtin.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/builtin.lua b/builtin/builtin.lua index 34bda8245..7b39effb2 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 |