Show More
@@ -163,12 +163,12 b' def callcatch(ui, func):' | |||
|
163 | 163 | else: |
|
164 | 164 | reason = _('lock held by %r') % inst.locker |
|
165 | 165 | ui.warn(_("abort: %s: %s\n") |
|
166 |
% (inst.desc or |
|
|
166 | % (inst.desc or util.forcebytestr(inst.filename), reason)) | |
|
167 | 167 | if not inst.locker: |
|
168 | 168 | ui.warn(_("(lock might be very busy)\n")) |
|
169 | 169 | except error.LockUnavailable as inst: |
|
170 | 170 | ui.warn(_("abort: could not lock %s: %s\n") % |
|
171 |
(inst.desc or |
|
|
171 | (inst.desc or util.forcebytestr(inst.filename), | |
|
172 | 172 | encoding.strtolocal(inst.strerror))) |
|
173 | 173 | except error.OutOfBandError as inst: |
|
174 | 174 | if inst.args: |
@@ -234,7 +234,7 b' def callcatch(ui, func):' | |||
|
234 | 234 | if getattr(inst, "filename", None): |
|
235 | 235 | ui.warn(_("abort: %s: %s\n") % ( |
|
236 | 236 | encoding.strtolocal(inst.strerror), |
|
237 |
|
|
|
237 | util.forcebytestr(inst.filename))) | |
|
238 | 238 | else: |
|
239 | 239 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) |
|
240 | 240 | else: |
@@ -243,7 +243,7 b' def callcatch(ui, func):' | |||
|
243 | 243 | if getattr(inst, "filename", None) is not None: |
|
244 | 244 | ui.warn(_("abort: %s: '%s'\n") % ( |
|
245 | 245 | encoding.strtolocal(inst.strerror), |
|
246 |
|
|
|
246 | util.forcebytestr(inst.filename))) | |
|
247 | 247 | else: |
|
248 | 248 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) |
|
249 | 249 | except MemoryError: |
General Comments 0
You need to be logged in to leave comments.
Login now