mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Merge e6d391ecd7
into f609e1ddaf
This commit is contained in:
commit
dacd4e3142
5 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,7 @@ async fn main() -> ExitCode {
|
||||||
let result = run().await;
|
let result = run().await;
|
||||||
debug!("Took {}ms", start.elapsed().as_millis());
|
debug!("Took {}ms", start.elapsed().as_millis());
|
||||||
if let Err(err) = result {
|
if let Err(err) = result {
|
||||||
|
debug!("Error trace: {err:?}");
|
||||||
eprintln!("{}", "uv-dev failed".red().bold());
|
eprintln!("{}", "uv-dev failed".red().bold());
|
||||||
for err in err.chain() {
|
for err in err.chain() {
|
||||||
eprintln!(" {}: {}", "Caused by".red().bold(), err.to_string().trim());
|
eprintln!(" {}: {}", "Caused by".red().bold(), err.to_string().trim());
|
||||||
|
|
|
@ -273,6 +273,7 @@ async fn gather_credentials(
|
||||||
fetching the trusted publishing token. If you don't want to use trusted \
|
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."
|
publishing, you can ignore this error, but you need to provide credentials."
|
||||||
)?;
|
)?;
|
||||||
|
debug!("Error trace: {err:?}");
|
||||||
writeln!(
|
writeln!(
|
||||||
printer.stderr(),
|
printer.stderr(),
|
||||||
"{}: {err}",
|
"{}: {err}",
|
||||||
|
|
|
@ -649,6 +649,7 @@ pub(crate) async fn install(
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))
|
.sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))
|
||||||
{
|
{
|
||||||
|
debug!("Error trace: {err:?}");
|
||||||
writeln!(
|
writeln!(
|
||||||
printer.stderr(),
|
printer.stderr(),
|
||||||
"{}: Failed to install {}",
|
"{}: Failed to install {}",
|
||||||
|
|
|
@ -154,6 +154,7 @@ pub(crate) async fn upgrade(
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.sorted_unstable_by(|(name_a, _), (name_b, _)| name_a.cmp(name_b))
|
.sorted_unstable_by(|(name_a, _), (name_b, _)| name_a.cmp(name_b))
|
||||||
{
|
{
|
||||||
|
debug!("Error trace: {err:?}");
|
||||||
writeln!(
|
writeln!(
|
||||||
printer.stderr(),
|
printer.stderr(),
|
||||||
"{}: Failed to upgrade {}",
|
"{}: Failed to upgrade {}",
|
||||||
|
|
|
@ -2277,6 +2277,7 @@ where
|
||||||
match result {
|
match result {
|
||||||
Ok(code) => code.into(),
|
Ok(code) => code.into(),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
debug!("Error trace: {err:?}");
|
||||||
let mut causes = err.chain();
|
let mut causes = err.chain();
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"{}: {}",
|
"{}: {}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue