improve error reporting in GET_HISTORY
parent
2a7dbc1294
commit
8bee95d13d
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue