Skip to content

Commit

Permalink
add logs in case conf parameter could not properly handled (DeviaVir#…
Browse files Browse the repository at this point in the history
  • Loading branch information
trivalik authored and DeviaVir committed Jan 12, 2018
1 parent b0b7c92 commit c5712ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ module.exports = function (cb) {
try {
conf = require(_allArgs[0])
} catch (ee) {
console.log('Fall back to conf.js, ' + ee)
conf = require('./conf')
}
} else {
conf = require('./conf')
}
}
catch (e) {
console.log('Fall back to sample-conf.js, ' + e)
conf = {}
}

Expand Down

0 comments on commit c5712ce

Please sign in to comment.