#68 Log JSON parsing errors

This commit is contained in:
Alan Grainger
2025-05-06 21:00:39 +12:00
parent fd73263cc1
commit ea5889f7a6
+3 -1
View File
@@ -6,7 +6,9 @@ let config = {}
try {
const configJson = require(process.env.IPP_CONFIG || '../config.json')
if (typeof configJson === 'object') config = configJson
} catch (e) { }
} catch (e) {
console.log(e)
}
/**
* Get a configuration option fron config.json using dotted notation.