diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py
index a6bcd70cd9c277d090fdeb3e595ce578366603ae_Y29udHJpYi9yZXZzZXRiZW5jaG1hcmtzLnB5..3e80691d0dfefc7c140d655ef684ac85b4173eb0_Y29udHJpYi9yZXZzZXRiZW5jaG1hcmtzLnB5 100755
--- a/contrib/revsetbenchmarks.py
+++ b/contrib/revsetbenchmarks.py
@@ -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):