Skip to content

Commit

Permalink
🐛 better error handling for setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Moran committed Jun 16, 2017
1 parent 5a5cf6e commit 74dbe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let setup;
try {
setup = jsonfile.readFileSync(`./${setupFile}`);
} catch (error) {
let errorMessage = `'${setupFile}' could not be found.`
let errorMessage = `Something went wrong: ${error.stack}`;
if (!customSetupFile) {
errorMessage = 'You did not provide any specific setup file and no setup.json file has been found.';
}
Expand Down

0 comments on commit 74dbe11

Please sign in to comment.