Show More
@@ -307,15 +307,12 b' def loadall(ui, whitelist=None):' | |||||
307 | except Exception as inst: |
|
307 | except Exception as inst: | |
308 | msg = stringutil.forcebytestr(inst) |
|
308 | msg = stringutil.forcebytestr(inst) | |
309 | if path: |
|
309 | if path: | |
310 | ui.warn( |
|
310 | error_msg = _(b"failed to import extension %s from %s: %s") | |
311 | _(b"*** failed to import extension %s from %s: %s\n") |
|
311 | error_msg %= (name, path, msg) | |
312 | % (name, path, msg) |
|
|||
313 | ) |
|
|||
314 | else: |
|
312 | else: | |
315 | ui.warn( |
|
313 | error_msg = _(b"failed to import extension %s: %s") | |
316 | _(b"*** failed to import extension %s: %s\n") |
|
314 | error_msg %= (name, msg) | |
317 | % (name, msg) |
|
315 | ui.warn((b"*** %s\n") % error_msg) | |
318 | ) |
|
|||
319 | if isinstance(inst, error.Hint) and inst.hint: |
|
316 | if isinstance(inst, error.Hint) and inst.hint: | |
320 | ui.warn(_(b"*** (%s)\n") % inst.hint) |
|
317 | ui.warn(_(b"*** (%s)\n") % inst.hint) | |
321 | ui.traceback() |
|
318 | ui.traceback() |
General Comments 0
You need to be logged in to leave comments.
Login now