mirror of https://github.com/status-im/metro.git
[ReactNative|Easy] Change watchman too-long error message
Summary: @wez Mentioned this in Issue #239 -- right now when watchman takes too long we recommend you run `watchman` from your terminal which actually expects some arguments, so it prints out the following: ``` [pcottle:~/Desktop/react-native:changeErrorMessage]$ watchman { "error": "invalid command (expected an array with some elements!)", "cli_validated": true, "version": "3.0.0" } ``` basically this ends up being more confusing since the command we recommend you run errors out, so lets change it to `watchman version` which at least exists cleanly. I kept the troubleshooting link as https://facebook.github.io/watchman/docs/troubleshooting.html since it sounds like we will update that with the issue people run into in #239 Closes https://github.com/facebook/react-native/pull/825 Github Author: Peter Cottle <pcottle@fb.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
parent
2fabfdae11
commit
83ee7ad9dd
|
@ -73,7 +73,7 @@ function createWatcher(rootConfig) {
|
|||
var rejectTimeout = setTimeout(function() {
|
||||
reject(new Error([
|
||||
'Watcher took too long to load',
|
||||
'Try running `watchman` from your terminal',
|
||||
'Try running `watchman version` from your terminal',
|
||||
'https://facebook.github.io/watchman/docs/troubleshooting.html',
|
||||
].join('\n')));
|
||||
}, MAX_WAIT_TIME);
|
||||
|
|
Loading…
Reference in New Issue