Mercurial > hg
changeset 47302:338623a2ebf2
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 18 May 2021 13:34:06 -0400 |
parents | 97f04eaafa65 |
children | e4ccc341e65b |
files | tests/hghave.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: