From df61d9a2d132db07e5048a7bfc01533492b78367 Mon Sep 17 00:00:00 2001 From: Travis Giggy Date: Wed, 1 Mar 2017 17:18:48 -0800 Subject: [PATCH 1/2] Adding diagnostic code as requested by @gaearon --- packages/create-react-app/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/create-react-app/index.js b/packages/create-react-app/index.js index 106e884f56c..9f95275b369 100755 --- a/packages/create-react-app/index.js +++ b/packages/create-react-app/index.js @@ -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(); From 8c8a7fea4aa47b33dfb7114bdc1652bdedc18abd Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 2 Mar 2017 01:38:53 +0000 Subject: [PATCH 2/2] Oops --- packages/create-react-app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-react-app/index.js b/packages/create-react-app/index.js index 9f95275b369..5c2205dc6fc 100755 --- a/packages/create-react-app/index.js +++ b/packages/create-react-app/index.js @@ -241,7 +241,7 @@ function run(root, appName, version, verbose, originalDirectory, template) { 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(chalk.red('Unexpected error. Please report it as a bug:')); console.log(reason); } console.log();