We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6ca93d commit 15a728aCopy full SHA for 15a728a
lib/helpers/config-helper.js
@@ -6,6 +6,10 @@ var args = require('yargs').argv
6
7
module.exports = {
8
getConfigFile: function() {
9
+ if (args.config) {
10
+ return path.resolve(process.cwd(), args.config)
11
+ }
12
+
13
return path.resolve(process.cwd(), 'config', 'config.json')
14
},
15
@@ -60,7 +64,7 @@ module.exports = {
60
64
try {
61
65
this.config = require(this.getConfigFile())
62
66
} catch(e) {
63
- throw new Error('Error reading "' + this.relativeConfigFile() + '".')
67
+ throw new Error('Error reading "' + this.relativeConfigFile() + '". Error: ' + e.message)
68
}
69
70
0 commit comments