changeset 93:0b0efe409d79

Fix two bugs in verify
author mpm@selenic.com
date Wed, 18 May 2005 15:24:18 -0800
parents e6fc7ff52246
children 7daef883134f
files hg
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: