revsetbenchmark: fix error raising stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 25 Apr 2014 13:44:51 -0700
branchstable
changeset 21202 c04e5e937139
parent 21201 c8b9c6147108
child 21203 9f12d8665c7b
revsetbenchmark: fix error raising We want to display the commands, not all arguments of the function. (The old code actually crash, failing to joining a list of lists.)
contrib/revsetbenchmarks.py
--- a/contrib/revsetbenchmarks.py	Mon Apr 28 16:28:52 2014 -0700
+++ b/contrib/revsetbenchmarks.py	Fri Apr 25 13:44:51 2014 -0700
@@ -22,7 +22,7 @@
     proc = Popen(*args, **kwargs)
     output, error = proc.communicate()
     if proc.returncode != 0:
-        raise CalledProcessError(proc.returncode, ' '.join(args))
+        raise CalledProcessError(proc.returncode, ' '.join(args[0]))
     return output
 
 def update(rev):