fsmonitor: correct an error message
Without the change, the error looks like:
warning: Watchman unavailable: "watchman" executable not in PATH (%s),
while executing [Errno 2] No such file or directory
With the change, it now looks like:
warning: Watchman unavailable: "watchman" executable not in PATH
([Errno 2] No such file or directory)
Differential Revision: https://phab.mercurial-scm.org/D322
--- a/hgext/fsmonitor/pywatchman/__init__.py Thu Aug 10 20:55:28 2017 -0700
+++ b/hgext/fsmonitor/pywatchman/__init__.py Thu Aug 10 09:37:50 2017 -0700
@@ -825,7 +825,7 @@
p = subprocess.Popen(cmd, **args)
except OSError as e:
- raise WatchmanError('"watchman" executable not in PATH (%s)', e)
+ raise WatchmanError('"watchman" executable not in PATH (%s)' % e)
stdout, stderr = p.communicate()
exitcode = p.poll()