fix(#764): config_parse_error now populates hint field via Display newline delimiter

This commit is contained in:
YeonGyu-Kim
2026-05-27 01:23:00 +09:00
parent c86dc73d8c
commit 4ea255ca6a
3 changed files with 42 additions and 1 deletions

View File

@@ -217,7 +217,10 @@ impl Display for ConfigError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
Self::Io(error) => write!(f, "{error}"),
Self::Parse(error) => write!(f, "{error}"),
Self::Parse(error) => write!(
f,
"{error}\nFix: open the file shown above and correct the JSON syntax, then retry."
),
}
}
}