# HG changeset patch # User Matt Mackall # Date 2010-08-05 21:17:17 # Node ID 12998fd17fbc9a26ac144da32c66368b7c11dc0a # Parent 28a450e1f54c4df37c581720aac9b2d99dee39b5 verify: report exceptions that don't have a str() method diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -48,6 +48,8 @@ def _verify(repo): 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):