From 967ca6afa99a05a32b8ab99ffadac1f2eaa830b3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 24 Mar 2020 15:02:26 -0400 Subject: [PATCH] suppress ENOENT errors when checking empty chat channels --- lib/hk-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hk-util.js b/lib/hk-util.js index 29f06b17d..9b0c4dd24 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -480,7 +480,7 @@ const getOlderHistory = function (Env, channelName, oldestKnownHash, cb) { } messageBuffer.push(parsed); }, function (err) { - if (err) { + if (err && err.code !== 'ENOENT') { Log.error("HK_GET_OLDER_HISTORY", err); } cb(messageBuffer);