diff options
author | Kim Alvefur <zash@zash.se> | 2015-11-04 12:21:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-11-04 12:21:46 +0100 |
commit | 40ea69c741a7df56955e436f98d8244ca82e1f51 (patch) | |
tree | ea43c66aff5430f4952115c29bd6963932acb9c6 | |
parent | 260dfd3d708c21a49a318f705c3c24d3a4c74608 (diff) | |
download | prosody-40ea69c741a7df56955e436f98d8244ca82e1f51.tar.gz prosody-40ea69c741a7df56955e436f98d8244ca82e1f51.zip |
sessionmanager: Clarify log message when failing to write data to connection
-rw-r--r-- | core/sessionmanager.lua | 5 |
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; |