# HG changeset patch # User Augie Fackler # Date 1621359246 14400 # Node ID 338623a2ebf22666678276cb04039decd55c162c # Parent 97f04eaafa65e6279f87c9ea7630b34f55068c79 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 diff -r 97f04eaafa65 -r 338623a2ebf2 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: