#68 Log JSON parsing errors
This commit is contained in:
1 parent
fd73263cc1
commit
ea5889f7a6
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user