Change %e to ?e to include detailed error message

This commit is contained in:
Arthur Baars 2025-03-06 13:36:20 +01:00
parent c053cc72a7
commit e98c98fa31

View File

@ -300,10 +300,9 @@ impl CargoWorkspace {
if let Ok((_, Some(ref e))) = res { if let Ok((_, Some(ref e))) = res {
tracing::warn!( tracing::warn!(
%cargo_toml, %cargo_toml,
%e, ?e,
"`cargo metadata` failed, but retry with `--no-deps` succeeded" "`cargo metadata` failed, but retry with `--no-deps` succeeded"
); );
tracing::debug!("{e:?}");
} }
res res
} }