Commit ff18064a authored by Leo Iannacone's avatar Leo Iannacone

handling erroros coming from user configuration

parent 9f8d7ee4
...@@ -116,6 +116,12 @@ try { ...@@ -116,6 +116,12 @@ try {
console.log("Reading user configutation ...") console.log("Reading user configutation ...")
module.exports = _merge(config, user_config) module.exports = _merge(config, user_config)
} catch (err) { } catch (err) {
consol.log("error reading user configutation", err) if (err.code == 'MODULE_NOT_FOUND') {
module.exports = config console.log("User configutation not found. Using global settings.")
module.exports = config
}
else {
console.error("Error reading user configutation", err)
process.exit(1)
}
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment