Skip to content
Snippets Groups Projects
Commit 3e80691d authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

revsetbenchmarks: improve error output in case of failure

This helps with diagnostics.
parent a6bcd70c
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,11 @@
output = output.lstrip('!') # remove useless ! in this context
return output.strip()
except CalledProcessError, exc:
print >> sys.stderr, 'abort: cannot run revset benchmark'
print >> sys.stderr, 'abort: cannot run revset benchmark: %s' % exc.cmd
if exc.output is None:
print >> sys.stderr, '(no ouput)'
else:
print >> sys.stderr, exc.output
sys.exit(exc.returncode)
def printrevision(rev):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment