fsmonitor: reapply dd35abc409ee stable
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 02 Nov 2019 12:52:58 -0700
branchstable
changeset 43387 9eed959cd8ae
parent 43386 2247bf3cec76
child 43388 51316de92ad0
fsmonitor: reapply dd35abc409ee The recent revendoring of pywatchman undid this bug fix. Let's reapply it. Differential Revision: https://phab.mercurial-scm.org/D7203
hgext/fsmonitor/pywatchman/__init__.py
--- a/hgext/fsmonitor/pywatchman/__init__.py	Sat Nov 02 12:51:28 2019 -0700
+++ b/hgext/fsmonitor/pywatchman/__init__.py	Sat Nov 02 12:52:58 2019 -0700
@@ -996,7 +996,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()