Submitter | Yuya Nishihara |
---|---|
Date | May 19, 2017, 3:25 p.m. |
Message ID | <9f15f346510482387718.1495207516@mimosa> |
Download | mbox | patch |
Permalink | /patch/20724/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -172,13 +172,15 @@ def loadall(ui): try: load(ui, name, path) except Exception as inst: - inst = _forbytes(inst) + msg = _forbytes(inst) if path: ui.warn(_("*** failed to import extension %s from %s: %s\n") - % (name, path, inst)) + % (name, path, msg)) else: ui.warn(_("*** failed to import extension %s: %s\n") - % (name, inst)) + % (name, msg)) + if isinstance(inst, error.Hint) and inst.hint: + ui.warn(_("*** (%s)\n") % inst.hint) ui.traceback() for name in _order[newindex:]: