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.)
This commit is contained in:
Pierre-Yves David 2014-04-25 13:44:51 -07:00
parent 4274fa0b04
commit 34283e2be8

View File

@ -22,7 +22,7 @@ def check_output(*args, **kwargs):
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):