diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-11-30 09:05:51 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-11-30 09:05:51 +0500 |
commit | d2b8f935c6abdab0c44375ffe110e32dedbe0b26 (patch) | |
tree | 74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4 /core/sessionmanager.lua | |
parent | 86d98527ee00dd466994470dabbe1954bbc81351 (diff) | |
download | prosody-d2b8f935c6abdab0c44375ffe110e32dedbe0b26.tar.gz prosody-d2b8f935c6abdab0c44375ffe110e32dedbe0b26.zip |
sessionmanager: Log the actual error message when roster loading fails.
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r-- | core/sessionmanager.lua | 1 |
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 |