From 8bee95d13d2278282a99531b69ace14c0dbeb584 Mon Sep 17 00:00:00 2001 From: ansuz Date: Sun, 26 Apr 2020 13:19:14 -0400 Subject: [PATCH] improve error reporting in GET_HISTORY --- lib/hk-util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hk-util.js b/lib/hk-util.js index 3b8c07e09..562114ec7 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -622,7 +622,8 @@ const handleGetHistory = function (Env, Server, seq, userId, parsed) { }, (err) => { if (err && err.code !== 'ENOENT') { if (err.message !== 'EINVAL') { Log.error("HK_GET_HISTORY", { - err: err && err.message, + channel: channelName, + err: err && err.message || err, stack: err && err.stack, }); } const parsedMsg = {error:err.message, channel: channelName, txid: txid};