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	Wed May 18 15:23:10 2005 -0800
+++ b/hg	Wed May 18 15:24:18 2005 -0800
@@ -433,7 +433,7 @@
 
         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 @@
               (files, changesets, revisions))
     
     if errors:
-        ui.warn("%d integrity errors encountered!\n")
+        ui.warn("%d integrity errors encountered!\n" % errors)
         sys.exit(1)
     
 else: