Skip to content

Commit 972d0e9

Browse files
committed
Merge pull request #18 from browserstack/invalid_config
Invalid config
2 parents d9015fa + db86930 commit 972d0e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ try {
66
var config = require(process.cwd() + '/browserstack');
77
} catch (e) {
88
if (e.code == 'MODULE_NOT_FOUND') {
9-
console.error('Configuration file `browserstack.json` is missing.');
9+
console.log('Configuration file `browserstack.json` is missing.');
1010
} else {
11-
throw(e);
11+
console.log('Invalid configuration in `browserstack.json` file');
12+
console.log(e.message);
13+
console.log(e.stack);
1214
}
13-
1415
process.exit(1);
1516
}
1617

0 commit comments

Comments
 (0)