mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04: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(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()
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue