Skip to content

Commit

Permalink
Diagnostic code (facebook#1695)
Browse files Browse the repository at this point in the history
* Adding diagnostic code as requested by @gaearon

* Oops
  • Loading branch information
tgig authored and randycoulman committed May 8, 2017
1 parent b53b0a7 commit 4b4d338
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/create-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ function run(root, appName, version, verbose, originalDirectory, template) {
console.log('Aborting installation.');
if (reason.command) {
console.log(' ' + chalk.cyan(reason.command), 'has failed.')
} else {
console.log(chalk.red('Unexpected error. Please report it as a bug:'));
console.log(reason);
}
console.log();

Expand Down

0 comments on commit 4b4d338

Please sign in to comment.