Software /
code /
prosody
Changeset
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 |
parents | 6914:5df76208e050 |
children | 6916:d0ab0069145f |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
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;