diff --git a/src/utils.ts b/src/utils.ts index c34a5ab..dbc5a8b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -18,7 +18,7 @@ try { var { useSsl, port, domain, isProxied, diskFilePath, s3bucket, s3endpoint, s3usePathStyle } = require('../config.json'); // skipcq: JS-0239, JS-0102 } catch (ex) { // @ts-ignore - if (ex.code !== 'MODULE_NOT_FOUND' || Object.prototype.toString.call(ex).includes('Unexpected end of JSON input')) console.error(ex); + if (ex.code !== 'MODULE_NOT_FOUND' || !Object.prototype.toString.call(ex).includes('Unexpected end of JSON input')) console.error(ex); } export function getTrueHttp() {