mercurial/commands.py
changeset 2617 0b4bff2b0ce3
parent 2601 00fc88b0b256
child 2618 8367b67ad397
child 2625 70d65ca6d893
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3308,7 +3308,7 @@ def dispatch(args):
         except (util.SignalInterrupt, KeyboardInterrupt):
             raise
         except Exception, inst:
-            u.warn(_("*** failed to import extension %s: %s\n") % (x[0], inst))
+            u.warn(_("*** failed to import extension %s: %s\n") % (ext_name, inst))
             if u.print_exc():
                 return 1