diff --git a/crates/uv-dev/src/main.rs b/crates/uv-dev/src/main.rs index e9825e134..6ce26c3ca 100644 --- a/crates/uv-dev/src/main.rs +++ b/crates/uv-dev/src/main.rs @@ -68,6 +68,7 @@ async fn main() -> ExitCode { let result = run().await; debug!("Took {}ms", start.elapsed().as_millis()); if let Err(err) = result { + debug!("Error trace: {err:?}"); eprintln!("{}", "uv-dev failed".red().bold()); for err in err.chain() { eprintln!(" {}: {}", "Caused by".red().bold(), err.to_string().trim()); diff --git a/crates/uv/src/commands/publish.rs b/crates/uv/src/commands/publish.rs index 63a0f2756..d6b8b07cc 100644 --- a/crates/uv/src/commands/publish.rs +++ b/crates/uv/src/commands/publish.rs @@ -273,6 +273,7 @@ async fn gather_credentials( fetching the trusted publishing token. If you don't want to use trusted \ publishing, you can ignore this error, but you need to provide credentials." )?; + debug!("Error trace: {err:?}"); writeln!( printer.stderr(), "{}: {err}", diff --git a/crates/uv/src/commands/python/install.rs b/crates/uv/src/commands/python/install.rs index 3df0cf91d..61e8a6dab 100644 --- a/crates/uv/src/commands/python/install.rs +++ b/crates/uv/src/commands/python/install.rs @@ -649,6 +649,7 @@ pub(crate) async fn install( .into_iter() .sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b)) { + debug!("Error trace: {err:?}"); writeln!( printer.stderr(), "{}: Failed to install {}", diff --git a/crates/uv/src/commands/tool/upgrade.rs b/crates/uv/src/commands/tool/upgrade.rs index 95b7d1e2d..bb103f89b 100644 --- a/crates/uv/src/commands/tool/upgrade.rs +++ b/crates/uv/src/commands/tool/upgrade.rs @@ -154,6 +154,7 @@ pub(crate) async fn upgrade( .into_iter() .sorted_unstable_by(|(name_a, _), (name_b, _)| name_a.cmp(name_b)) { + debug!("Error trace: {err:?}"); writeln!( printer.stderr(), "{}: Failed to upgrade {}", diff --git a/crates/uv/src/lib.rs b/crates/uv/src/lib.rs index ab4aee9e9..d8a1f6255 100644 --- a/crates/uv/src/lib.rs +++ b/crates/uv/src/lib.rs @@ -2277,6 +2277,7 @@ where match result { Ok(code) => code.into(), Err(err) => { + debug!("Error trace: {err:?}"); let mut causes = err.chain(); eprintln!( "{}: {}",