From patchwork Wed Mar 3 18:24:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10099: rhg: Align "malformed --config" error message with Python From: phabricator X-Patchwork-Id: 48414 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 3 Mar 2021 18:24:50 +0000 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 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), )))?