aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-11-04 12:21:46 +0100
committerKim Alvefur <zash@zash.se>2015-11-04 12:21:46 +0100
commit6c28def6cca6c511701c180976eb3c2d81610e64 (patch)
treeea43c66aff5430f4952115c29bd6963932acb9c6 /core/sessionmanager.lua
parent1a728fad755b3ba2b5383ac0ee6273d19e498e0f (diff)
downloadprosody-6c28def6cca6c511701c180976eb3c2d81610e64.tar.gz
prosody-6c28def6cca6c511701c180976eb3c2d81610e64.zip
sessionmanager: Clarify log message when failing to write data to connection
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index bc4d7cef..f168c8e9 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -39,10 +39,9 @@ local function new_session(conn)
if t then
local ret, err = w(conn, t);
if not ret then
- session.log("error", "Write-error: %s", tostring(err));
- return false;
+ session.log("error", "Error writing to connection: %s", tostring(err));
+ return false, err;
end
- return true;
end
end
return true;