#68 Log JSON parsing errors
This commit is contained in:
@@ -6,7 +6,9 @@ let config = {}
|
|||||||
try {
|
try {
|
||||||
const configJson = require(process.env.IPP_CONFIG || '../config.json')
|
const configJson = require(process.env.IPP_CONFIG || '../config.json')
|
||||||
if (typeof configJson === 'object') config = configJson
|
if (typeof configJson === 'object') config = configJson
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a configuration option fron config.json using dotted notation.
|
* Get a configuration option fron config.json using dotted notation.
|
||||||
|
|||||||
Reference in New Issue
Block a user