mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Log the debug error trace
For #14425. We can see the error without `error(transparent)` applied by looking at the debug representation.
This commit is contained in:
parent
e8bc3950ef
commit
e6d391ecd7
5 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue