Skip to content

Commit

Permalink
Return non-zero exit code from wrong-react-native
Browse files Browse the repository at this point in the history
Summary:
When used in automation, `wrong-react-native` can cause problems because it does not
report the issue via exit code.
Closes #5114

Reviewed By: svcscm

Differential Revision: D2799995

Pulled By: frantic

fb-gh-sync-id: 23c32dac9b0fcdbeaf48b94e9cb220c6c1b344aa
  • Loading branch information
frantic authored and facebook-github-bot-7 committed Jan 5, 2016
1 parent 180fc06 commit ec76271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local-cli/wrong-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ console.error([
'npm uninstall -g react-native',
'npm install -g react-native-cli'
].join('\n'));

process.exit(1);

0 comments on commit ec76271

Please sign in to comment.