Show More
@@ -189,12 +189,12 b' def callcatch(ui, func):' | |||
|
189 | 189 | msg = inst.args[1] |
|
190 | 190 | if isinstance(msg, type(u'')): |
|
191 | 191 | msg = pycompat.sysbytes(msg) |
|
192 |
|
|
|
193 |
ui.warn(" %r\n" % ( |
|
|
194 |
elif not |
|
|
192 | if not isinstance(msg, bytes): | |
|
193 | ui.warn(" %r\n" % (msg,)) | |
|
194 | elif not msg: | |
|
195 | 195 | ui.warn(_(" empty string\n")) |
|
196 | 196 | else: |
|
197 |
ui.warn("\n%r\n" % util.ellipsis( |
|
|
197 | ui.warn("\n%r\n" % util.ellipsis(msg)) | |
|
198 | 198 | except error.CensoredNodeError as inst: |
|
199 | 199 | ui.warn(_("abort: file censored %s!\n") % inst) |
|
200 | 200 | except error.RevlogError as inst: |
General Comments 0
You need to be logged in to leave comments.
Login now