Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/config/layer.rs @ 46727:28a54c128e82
rhg: Align "malformed --config" error message with Python
Differences in error message formatting can cause tests to fail.
Differential Revision: https://phab.mercurial-scm.org/D10099
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 18:40:17 +0100 |
parents | 1f55cd5b292f |
children | 3d692e724d06 |
line wrap: on
line diff
--- a/rust/hg-core/src/config/layer.rs Wed Mar 03 18:38:22 2021 +0100 +++ b/rust/hg-core/src/config/layer.rs Wed Mar 03 18:40:17 2021 +0100 @@ -74,7 +74,7 @@ layer.add(section, item, value, None); } else { Err(HgError::abort(format!( - "malformed --config option: \"{}\" \ + "malformed --config option: '{}' \ (use --config section.name=value)", String::from_utf8_lossy(arg), )))?