##// END OF EJS Templates
revsetbenchmark: handle exception case...
Durham Goode -
r28073:c4bec3c4 default
parent child Browse files
Show More
@@ -63,7 +63,7 b' def perf(revset, target=None, contexts=F'
63 return parseoutput(output)
63 return parseoutput(output)
64 except CalledProcessError as exc:
64 except CalledProcessError as exc:
65 print >> sys.stderr, 'abort: cannot run revset benchmark: %s' % exc.cmd
65 print >> sys.stderr, 'abort: cannot run revset benchmark: %s' % exc.cmd
66 if exc.output is None:
66 if getattr(exc, 'output', None) is None: # no output before 2.7
67 print >> sys.stderr, '(no output)'
67 print >> sys.stderr, '(no output)'
68 else:
68 else:
69 print >> sys.stderr, exc.output
69 print >> sys.stderr, exc.output
General Comments 0
You need to be logged in to leave comments. Login now