hghave: make error output easier to diagnose
authorAugie Fackler <augie@google.com>
Tue, 18 May 2021 13:34:06 -0400
changeset 47302 338623a2ebf2
parent 47301 97f04eaafa65
child 47303 e4ccc341e65b
hghave: make error output easier to diagnose I had a typo that meant the new bash check was throwing an exception (due to a missing argument), but it was very hard to diagnose without this change. Differential Revision: https://phab.mercurial-scm.org/D10733
tests/hghave.py
--- a/tests/hghave.py	Tue May 18 13:24:41 2021 -0400
+++ b/tests/hghave.py	Tue May 18 13:34:06 2021 -0400
@@ -104,8 +104,8 @@
         check, desc = checks[feature]
         try:
             available = check()
-        except Exception:
-            result['error'].append('hghave check failed: %s' % feature)
+        except Exception as e:
+            result['error'].append('hghave check %s failed: %r' % (feature, e))
             continue
 
         if not negate and not available: