mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
4274fa0b04
commit
34283e2be8
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user