Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

add logs in case conf parameter could not properly handled #1114

Merged
merged 1 commit into from
Jan 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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