From d35c665bc9d1016d038eb5942a874525ce7ec973 Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 7 Jul 2021 22:52:58 -0600 Subject: [PATCH] use proper error function instead of log --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index f801488..5d261cc 100755 --- a/utils.js +++ b/utils.js @@ -13,7 +13,7 @@ const { HTTP, HTTPS, KILOBYTES } = require('./MagicNumbers.json'); try { var { useSsl, port, domain, isProxied, diskFilePath, saveWithDate, s3bucket, s3endpoint } = require('./config.json'); // skipcq: JS-0239, JS-0102 } catch (ex) { - if (ex.code !== 'MODULE_NOT_FOUND') console.log(ex); + if (ex.code !== 'MODULE_NOT_FOUND') console.error(ex); } const path = (...paths) => Path.join(__dirname, ...paths);