Skip to content

Commit

Permalink
Update error message on unrecognized commands
Browse files Browse the repository at this point in the history
Summary:
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

(You can skip this if you're fixing a typo or adding an app to the Showcase.)

Kevin: This isn't quite a typo, but it's a change to an error message.

In my experience, frequently when this error message is displayed, the command is unrecognized because I haven't run npm install, I just checked out a repo of someone else's. We could just update this error message a bit, and I think it would improve the developer experience.
Closes facebook#7859

Differential Revision: D3379234

fbshipit-source-id: 4fb6e5bae20904871c9c4f7504013dc18b1fe707
  • Loading branch information
Kevin Lacker authored and Facebook Github Bot 6 committed Jun 3, 2016
1 parent c55e364 commit 16a97c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-native-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if (cli) {
default:
console.error(
'Command `%s` unrecognized. ' +
'Did you mean to run this inside a react-native project?',
'Make sure that you have run `npm install` and that you are inside a react-native project.',
commands[0]
);
process.exit(1);
Expand Down

0 comments on commit 16a97c8

Please sign in to comment.