Skip to content

Commit

Permalink
Diagnostic code (#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 Timer committed Mar 4, 2017
1 parent 008d9a1 commit 2580b52
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 2580b52

Please sign in to comment.