Software /
code /
prosody
Diff
core/sessionmanager.lua @ 6915:9d74373d621e
sessionmanager: Clarify log message when failing to write data to connection
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 04 Nov 2015 12:21:46 +0100 |
parent | 6842:eed846384178 |
child | 6916:d0ab0069145f |
line wrap: on
line diff
--- a/core/sessionmanager.lua Wed Oct 21 13:37:26 2015 +0200 +++ b/core/sessionmanager.lua Wed Nov 04 12:21:46 2015 +0100 @@ -39,10 +39,9 @@ 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;