mercurial/dispatch.py
changeset 7643 9a1ea6587557
parent 7641 d2f753830f80
child 7644 182b7114d35a
--- a/mercurial/dispatch.py	Mon Jan 12 11:28:30 2009 -0600
+++ b/mercurial/dispatch.py	Mon Jan 12 11:39:38 2009 -0600
@@ -55,10 +55,10 @@
         else:
             ui.warn(_("hg: %s\n") % inst.args[1])
             commands.help_(ui, 'shortlist')
-    except cmdutil.AmbiguousCommand, inst:
+    except error.AmbiguousCommand, inst:
         ui.warn(_("hg: command '%s' is ambiguous:\n    %s\n") %
                 (inst.args[0], " ".join(inst.args[1])))
-    except cmdutil.UnknownCommand, inst:
+    except error.UnknownCommand, inst:
         ui.warn(_("hg: unknown command '%s'\n") % inst.args[0])
         commands.help_(ui, 'shortlist')
     except error.RepoError, inst: