From 2580b52df6eb297534a99425728c9b04c7d11c55 Mon Sep 17 00:00:00 2001 From: Travis Giggy Date: Thu, 2 Mar 2017 13:51:22 -0800 Subject: [PATCH] Diagnostic code (#1695) * Adding diagnostic code as requested by @gaearon * Oops --- 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..5c2205dc6fc 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();