verify: report exceptions that don't have a str() method stable
authorMatt Mackall <mpm@selenic.com>
Thu, 05 Aug 2010 16:17:17 -0500
branchstable
changeset 11752 12998fd17fbc
parent 11738 28a450e1f54c
child 11753 eb7b04657dae
verify: report exceptions that don't have a str() method
mercurial/verify.py
--- a/mercurial/verify.py	Mon Aug 02 13:30:03 2010 -0500
+++ b/mercurial/verify.py	Thu Aug 05 16:17:17 2010 -0500
@@ -48,6 +48,8 @@
         if isinstance(inst, KeyboardInterrupt):
             ui.warn(_("interrupted"))
             raise
+        if not str(inst):
+            inst = repr(inst)
         err(linkrev, "%s: %s" % (msg, inst), filename)
 
     def warn(msg):