# HG changeset patch
# User Waqas Hussain <waqas20@gmail.com>
# Date 1291922627 -18000
# Node ID 72a917d910a48923c692422840b76b4991efd05e
# Parent  f15b6ed967b7b3184fa91830457ca3e45b7ac95a
util.datamanager: Return an error string when pcall fails on a loaded list file.

diff -r f15b6ed967b7 -r 72a917d910a4 util/datamanager.lua
--- a/util/datamanager.lua	Fri Dec 10 00:21:09 2010 +0500
+++ b/util/datamanager.lua	Fri Dec 10 00:23:47 2010 +0500
@@ -219,7 +219,7 @@
 	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;
+		return nil, "Error reading storage";
 	end
 	return items;
 end