aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-11-30 09:05:51 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-11-30 09:05:51 +0500
commit55bd98c887050629202fc5b21a06749a743f0fc5 (patch)
tree74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4
parent56770c6a2b00a8159bf280258d87a9ff25847ab7 (diff)
downloadprosody-55bd98c887050629202fc5b21a06749a743f0fc5.tar.gz
prosody-55bd98c887050629202fc5b21a06749a743f0fc5.zip
sessionmanager: Log the actual error message when roster loading fails.
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
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