From 145386e94455765bcf73a1f037e9e0f3e28bad1b Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 7 Oct 2020 17:42:23 +0530 Subject: [PATCH] suppress an inconsequential error --- lib/historyKeeper.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/historyKeeper.js b/lib/historyKeeper.js index 3da325191..25d86f212 100644 --- a/lib/historyKeeper.js +++ b/lib/historyKeeper.js @@ -316,7 +316,11 @@ module.exports.create = function (config, cb) { var Decrees = require("./decrees"); Decrees.load(Env, function (err) { - if (err) { + if (err && err.code !== "ENOENT") { + Log.error('DECREES_LOADING', { + error: err.code || err, + message: err.message, + }); console.error(err); } });