comparison rust/hg-core/src/errors.rs @ 46735:12d59eec7f1d

rhg: Align with Python on some more error messages Differences can cause some tests to fail Differential Revision: https://phab.mercurial-scm.org/D10133
author Simon Sapin <simon.sapin@octobus.net>
date Thu, 04 Mar 2021 13:30:20 +0100
parents 3d692e724d06
children 97ac588b6d9e
comparison
equal deleted inserted replaced
46734:1a036d33bc18 46735:12d59eec7f1d
79 HgError::Abort(explanation) => write!(f, "{}", explanation), 79 HgError::Abort(explanation) => write!(f, "{}", explanation),
80 HgError::IoError { error, context } => { 80 HgError::IoError { error, context } => {
81 write!(f, "abort: {}: {}", context, error) 81 write!(f, "abort: {}: {}", context, error)
82 } 82 }
83 HgError::CorruptedRepository(explanation) => { 83 HgError::CorruptedRepository(explanation) => {
84 write!(f, "abort: corrupted repository: {}", explanation) 84 write!(f, "abort: {}", explanation)
85 } 85 }
86 HgError::UnsupportedFeature(explanation) => { 86 HgError::UnsupportedFeature(explanation) => {
87 write!(f, "unsupported feature: {}", explanation) 87 write!(f, "unsupported feature: {}", explanation)
88 } 88 }
89 HgError::ConfigValueParseError(ConfigValueParseError { 89 HgError::ConfigValueParseError(ConfigValueParseError {