changeset 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 92e3cfd63096
children 562a676e255a
files rust/hg-core/src/config/layer.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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),
                 )))?