Patchwork D10099: rhg: Align "malformed --config" error message with Python

login
register
mail settings
Submitter phabricator
Date March 3, 2021, 6:24 p.m.
Message ID <differential-rev-PHID-DREV-yzrcy4ivsexe5no6eccn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48414/
State Superseded
Headers show

Comments

phabricator - March 3, 2021, 6:24 p.m.
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10099

AFFECTED FILES
  rust/hg-core/src/config/layer.rs

CHANGE DETAILS




To: SimonSapin, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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 @@ 
                 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),
                 )))?