-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the parse error when specifying an unknown version.
Summary: **Motivation** When running `react-native-git-upgrade` with an unknown version, the error message isn't very helpful **Test Plan** - Publish the `master` branch to Sinopia - Run `react-native-git-upgrade 0.666.0` inside a RN project - Error message is `SyntaxError: Unexpected end of JSON input` - Publish this branch to Sinopia - Run `react-native-git-upgrade 0.666.0` inside a RN project - Error message should be `Error: The specified version of React Native 0.666.0 doesn't exist. Re-run the react-native-git-upgrade command with an existing version, for example: "react-native-git-upgrade 0.38.0", or without arguments to upgrade to the latest: "react-native-git-upgrade".` Closes #11264 Differential Revision: D4265553 Pulled By: mkonicek fbshipit-source-id: 8597eb09cc3397bfa6d2205a9b3bb30acfad530f
- Loading branch information
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters