util.datamanager: When failing to load a list file, and the file exists, log an error...
authorWaqas Hussain <waqas20@gmail.com>
Thu, 9 Dec 2010 19:21:09 +0000 (00:21 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Thu, 9 Dec 2010 19:21:09 +0000 (00:21 +0500)
util/datamanager.lua

index fbdfb581b66ef9208d37002c4e1b24125313f379..dfb74a631df86fdbe58f99578233c83f9b8b707e 100644 (file)
@@ -219,7 +219,7 @@ function list_load(username, host, datastore)
        local success, ret = pcall(data);
        if not success then
                log("error", "Unable to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
-               return nil, "Error reading storage";
+               return nil;
        end
        return items;
 end