use proper error function instead of log

pull/29/head
tycrek 4 years ago
parent 520b451bce
commit d35c665bc9
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -13,7 +13,7 @@ const { HTTP, HTTPS, KILOBYTES } = require('./MagicNumbers.json');
try { try {
var { useSsl, port, domain, isProxied, diskFilePath, saveWithDate, s3bucket, s3endpoint } = require('./config.json'); // skipcq: JS-0239, JS-0102 var { useSsl, port, domain, isProxied, diskFilePath, saveWithDate, s3bucket, s3endpoint } = require('./config.json'); // skipcq: JS-0239, JS-0102
} catch (ex) { } 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); const path = (...paths) => Path.join(__dirname, ...paths);

Loading…
Cancel
Save