mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix: config file errors should not print specifier with debug formatting (#15648)
This commit is contained in:
parent
ad98c9fdd1
commit
ea838d27a2
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue