From 55bd98c887050629202fc5b21a06749a743f0fc5 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 30 Nov 2012 09:05:51 +0500 Subject: sessionmanager: Log the actual error message when roster loading fails. --- core/sessionmanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 6945b8de..d505492e 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -185,6 +185,7 @@ function bind_resource(session, resource) 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 -- cgit v1.2.3