Skip to content

Commit 4b4d338

Browse files
tgigrandycoulman
authored andcommitted
Diagnostic code (facebook#1695)
* Adding diagnostic code as requested by @gaearon * Oops
1 parent b53b0a7 commit 4b4d338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/create-react-app/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ function run(root, appName, version, verbose, originalDirectory, template) {
240240
console.log('Aborting installation.');
241241
if (reason.command) {
242242
console.log(' ' + chalk.cyan(reason.command), 'has failed.')
243+
} else {
244+
console.log(chalk.red('Unexpected error. Please report it as a bug:'));
245+
console.log(reason);
243246
}
244247
console.log();
245248

0 commit comments

Comments
 (0)