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
commitd2b8f935c6abdab0c44375ffe110e32dedbe0b26 (patch)
tree74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4
parent86d98527ee00dd466994470dabbe1954bbc81351 (diff)
downloadprosody-d2b8f935c6abdab0c44375ffe110e32dedbe0b26.tar.gz
prosody-d2b8f935c6abdab0c44375ffe110e32dedbe0b26.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