Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hook.t @ 26692:8d1cfd77b64f
hook: raise a separate exception for when loading a hook fails
For easier catching.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 12 Oct 2015 18:49:23 -0700 |
parents | 56b2bcea2529 |
children | 949e8c626d19 |
line wrap: on
line diff
--- a/tests/test-hook.t Wed Oct 14 11:05:53 2015 -0700 +++ b/tests/test-hook.t Mon Oct 12 18:49:23 2015 -0700 @@ -628,7 +628,7 @@ Traceback (most recent call last): ImportError: No module named hgext_importfail Traceback (most recent call last): - Abort: precommit.importfail hook is invalid (import of "importfail" failed) + HookLoadError: precommit.importfail hook is invalid (import of "importfail" failed) abort: precommit.importfail hook is invalid (import of "importfail" failed) Issue1827: Hooks Update & Commit not completely post operation