util.datamanager: Change from 'Failed to load' to 'Assuming empty' for data store...
authorMatthew Wild <mwild1@gmail.com>
Tue, 11 Jan 2011 05:28:07 +0000 (05:28 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 11 Jan 2011 05:28:07 +0000 (05:28 +0000)
util/datamanager.lua

index 2be3acfd2d50c84fa78d282d4b5b3d755f40dd3b..d5e9c88ca7ad0130b879060950d579420edb65d1 100644 (file)
@@ -115,7 +115,7 @@ function load(username, host, datastore)
        if not data then
                local mode = lfs.attributes(getpath(username, host, datastore), "mode");
                if not mode then
-                       log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
+                       log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
                        return nil;
                else -- file exists, but can't be read
                        -- TODO more detailed error checking and logging?
@@ -207,7 +207,7 @@ function list_load(username, host, datastore)
        if not data then
                local mode = lfs.attributes(getpath(username, host, datastore, "list"), "mode");
                if not mode then
-                       log("debug", "Failed to load "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
+                       log("debug", "Assuming empty "..datastore.." storage ('"..ret.."') for user: "..(username or "nil").."@"..(host or "nil"));
                        return nil;
                else -- file exists, but can't be read
                        -- TODO more detailed error checking and logging?