Diff

core/sessionmanager.lua @ 5211:80635a6cb126

sessionmanager: Log the actual error message when roster loading fails.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 30 Nov 2012 09:05:51 +0500
parent 4995:47a7ac6508b3
child 5306:10bc0e2aa55e
line wrap: on
line diff
--- a/core/sessionmanager.lua	Fri Nov 30 08:57:58 2012 +0500
+++ b/core/sessionmanager.lua	Fri Nov 30 09:05:51 2012 +0500
@@ -185,6 +185,7 @@
 			bare_sessions[session.username..'@'..session.host] = nil;
 			hosts[session.host].sessions[session.username] = nil;
 		end
+		session.log("error", "Roster loading failed: %s", err);
 		return nil, "cancel", "internal-server-error", "Error loading roster";
 	end