From 40ea69c741a7df56955e436f98d8244ca82e1f51 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 4 Nov 2015 12:21:46 +0100 Subject: sessionmanager: Clarify log message when failing to write data to connection --- core/sessionmanager.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/sessionmanager.lua') 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; -- cgit v1.2.3