##// END OF EJS Templates
verify: report exceptions that don't have a str() method
Matt Mackall -
r11752:12998fd1 stable
parent child Browse files
Show More
@@ -48,6 +48,8 b' def _verify(repo):'
48 if isinstance(inst, KeyboardInterrupt):
48 if isinstance(inst, KeyboardInterrupt):
49 ui.warn(_("interrupted"))
49 ui.warn(_("interrupted"))
50 raise
50 raise
51 if not str(inst):
52 inst = repr(inst)
51 err(linkrev, "%s: %s" % (msg, inst), filename)
53 err(linkrev, "%s: %s" % (msg, inst), filename)
52
54
53 def warn(msg):
55 def warn(msg):
General Comments 0
You need to be logged in to leave comments. Login now