rhg: Align "malformed --config" error message with Python
authorSimon Sapin <simon.sapin@octobus.net>
Wed, 03 Mar 2021 18:40:17 +0100
changeset 46727 28a54c128e82
parent 46726 92e3cfd63096
child 46728 562a676e255a
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
rust/hg-core/src/config/layer.rs
--- 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),
                 )))?