fix: config file errors should not print specifier with debug formatting (#15648)

This commit is contained in:
David Sherret 2022-08-29 13:13:39 -04:00 committed by GitHub
parent ad98c9fdd1
commit ea838d27a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -567,13 +567,13 @@ impl ConfigFile {
Ok(Some(value)) if value.is_object() => value, Ok(Some(value)) if value.is_object() => value,
Ok(Some(_)) => { Ok(Some(_)) => {
return Err(anyhow!( return Err(anyhow!(
"config file JSON {:?} should be an object", "config file JSON {} should be an object",
specifier, specifier,
)) ))
} }
Err(e) => { Err(e) => {
return Err(anyhow!( return Err(anyhow!(
"Unable to parse config file JSON {:?} because of {}", "Unable to parse config file JSON {} because of {}",
specifier, specifier,
e.to_string() e.to_string()
)) ))