--- a/mercurial/extensions.py Fri Nov 26 16:55:34 2021 +0100
+++ b/mercurial/extensions.py Mon Nov 29 13:09:04 2021 +0100
@@ -307,10 +307,12 @@
except Exception as inst:
msg = stringutil.forcebytestr(inst)
if path:
- error_msg = _(b"failed to import extension %s from %s: %s")
+ error_msg = _(
+ b'failed to import extension "%s" from %s: %s'
+ )
error_msg %= (name, path, msg)
else:
- error_msg = _(b"failed to import extension %s: %s")
+ error_msg = _(b'failed to import extension "%s": %s')
error_msg %= (name, msg)
ui.warn((b"*** %s\n") % error_msg)
if isinstance(inst, error.Hint) and inst.hint: