Software /
code /
prosody
Changeset
5211:80635a6cb126
sessionmanager: Log the actual error message when roster loading fails.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 09:05:51 +0500 |
parents | 5210:862a6fae05e7 |
children | 5212:c2b431042a54 5213:cc487921746b |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/sessionmanager.lua Fri Nov 30 08:57:58 2012 +0500 +++ b/core/sessionmanager.lua Fri Nov 30 09:05:51 2012 +0500 @@ -185,6 +185,7 @@ 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