Skip to content

Commit 691297a

Browse files
committed
[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 #825 Github Author: Peter Cottle <[email protected]> Test Plan: Imported from GitHub, without a `Test Plan:` line.
1 parent 2975f26 commit 691297a

File tree

1 file changed

+1
-1
lines changed
  • packager/react-packager/src/FileWatcher

1 file changed

+1
-1
lines changed

packager/react-packager/src/FileWatcher/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function createWatcher(rootConfig) {
7373
var rejectTimeout = setTimeout(function() {
7474
reject(new Error([
7575
'Watcher took too long to load',
76-
'Try running `watchman` from your terminal',
76+
'Try running `watchman version` from your terminal',
7777
'https://facebook.github.io/watchman/docs/troubleshooting.html',
7878
].join('\n')));
7979
}, MAX_WAIT_TIME);

0 commit comments

Comments
 (0)