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 | 55bd98c887050629202fc5b21a06749a743f0fc5 (patch) | |
tree | 74e490c3a2d4ca6afc659fd9a071309b2c7a8cc4 | |
parent | 56770c6a2b00a8159bf280258d87a9ff25847ab7 (diff) | |
download | prosody-55bd98c887050629202fc5b21a06749a743f0fc5.tar.gz prosody-55bd98c887050629202fc5b21a06749a743f0fc5.zip |
sessionmanager: Log the actual error message when roster loading fails.
-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 |