From ea838d27a2b1bd7b396843b645aff544f84265c1 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 29 Aug 2022 13:13:39 -0400 Subject: [PATCH] fix: config file errors should not print specifier with debug formatting (#15648) --- cli/args/config_file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs index ab6e57cb1f..f6dc502be1 100644 --- a/cli/args/config_file.rs +++ b/cli/args/config_file.rs @@ -567,13 +567,13 @@ impl ConfigFile { Ok(Some(value)) if value.is_object() => value, Ok(Some(_)) => { return Err(anyhow!( - "config file JSON {:?} should be an object", + "config file JSON {} should be an object", specifier, )) } Err(e) => { return Err(anyhow!( - "Unable to parse config file JSON {:?} because of {}", + "Unable to parse config file JSON {} because of {}", specifier, e.to_string() ))