Fix two bugs in verify
authormpm@selenic.com
Wed, 18 May 2005 15:24:18 -0800
changeset 93 0b0efe409d79
parent 92 e6fc7ff52246
child 94 7daef883134f
Fix two bugs in verify
hg
--- a/hg
+++ b/hg
@@ -433,7 +433,7 @@ elif cmd == "verify":
 
         try:
             m = repo.manifest.read(n)
-        except Error, inst:
+        except Exception, inst:
             ui.warn("unpacking manifest %s: %s\n" % (hg.short(n), inst))
             errors += 1
             
@@ -505,7 +505,7 @@ elif cmd == "verify":
               (files, changesets, revisions))
     
     if errors:
-        ui.warn("%d integrity errors encountered!\n")
+        ui.warn("%d integrity errors encountered!\n" % errors)
         sys.exit(1)
     
 else: