fsmonitor: correct an error message
authorJun Wu <quark@fb.com>
Thu, 10 Aug 2017 09:37:50 -0700
changeset 33769 dd35abc409ee
parent 33768 82d564d5ac4f
child 33770 119e1c6be1ce
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
hgext/fsmonitor/pywatchman/__init__.py
--- 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()