From 63c7d4d8a39b9ec49346100d05f57c4e74cb79c3 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Fri, 16 Mar 2018 17:13:20 +0000
Subject: util.async: Log the non-error state as well when there is an error
 being processed

---
 util/async.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/async.lua b/util/async.lua
index 13ab73af..25236b11 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -161,7 +161,7 @@ function runner_mt:run(input)
 	-- Runner processed all items it can, so save current runner state
 	self.state = state;
 	if err or state ~= self.notified_state then
-		self:log("debug", "changed state from %s to %s", self.notified_state, err and "error" or state);
+		self:log("debug", "changed state from %s to %s", self.notified_state, err and ("error ("..state..")") or state);
 		if err then
 			state = "error"
 		else
-- 
cgit v1.2.3