# HG changeset patch
# User Simon Sapin <simon.sapin@octobus.net>
# Date 2021-03-03 17:40:17
# Node ID 28a54c128e82b576f187d3b3f88a2cf2284777e2
# Parent  92e3cfd63096be23bdf4da0682b70de501a54789

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

diff --git a/rust/hg-core/src/config/layer.rs b/rust/hg-core/src/config/layer.rs
--- a/rust/hg-core/src/config/layer.rs
+++ b/rust/hg-core/src/config/layer.rs
@@ -74,7 +74,7 @@ impl ConfigLayer {
                 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),
                 )))?