Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 45904:e5a0efd26f7a
config: clean up message about ignored untrusted config
The error message relied on Python's default formatting of arguments
to an Exception's constructor. Let's try to make it a little more
readable for users.
Differential Revision: https://phab.mercurial-scm.org/D9352
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 20 Nov 2020 10:31:56 -0800 |
parents | ac362d5a7893 |
children | 9dc1351d0b5f |
line wrap: on
line diff
--- a/mercurial/ui.py Fri Nov 20 10:22:58 2020 -0800 +++ b/mercurial/ui.py Fri Nov 20 10:31:56 2020 -0800 @@ -469,7 +469,9 @@ except error.ParseError as inst: if trusted: raise - self.warn(_(b'ignored: %s\n') % stringutil.forcebytestr(inst)) + self.warn( + _(b'ignored %s: %s\n') % (inst.location, inst.message) + ) self._applyconfig(cfg, trusted, root)