# HG changeset patch # User Matthew Wild # Date 1294723687 0 # Node ID 09f0ba0cfbfcab8b497527212af81c1fa562bc23 # Parent 4716c7645ad2b7dd8c796e3e3c2b9feaeac94f91 util.datamanager: Change from 'Failed to load' to 'Assuming empty' for data store files that do not seem to exist diff -r 4716c7645ad2 -r 09f0ba0cfbfc util/datamanager.lua --- a/util/datamanager.lua Tue Jan 11 05:04:08 2011 +0000 +++ b/util/datamanager.lua Tue Jan 11 05:28:07 2011 +0000 @@ -115,7 +115,7 @@ 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 @@ 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?