Skip to content

Commit c133c5e

Browse files
lcianclaude
andauthored
feat(preprod): Increase connect timeout, display full errors (#3204)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent afdef90 commit c133c5e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/commands/build/snapshots.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::fs::File;
33
use std::io::BufReader;
44
use std::path::{Path, PathBuf};
55
use std::str::FromStr as _;
6+
use std::time::Duration;
67

78
use anyhow::{Context as _, Result};
89
use clap::{Arg, ArgMatches, Command};
@@ -301,6 +302,7 @@ fn upload_images(
301302
};
302303
auth
303304
})
305+
.configure_reqwest(|r| r.connect_timeout(Duration::from_secs(10)))
304306
.build()?;
305307

306308
let mut scope = Usecase::new("preprod").scope();
@@ -385,7 +387,8 @@ fn upload_images(
385387
eprintln!("There were errors uploading images:");
386388
let mut error_count = 0;
387389
for error in errors {
388-
eprintln!(" {}", style(error).red());
390+
let error = anyhow::Error::new(error);
391+
eprintln!(" {}", style(format!("{error:#}")).red());
389392
error_count += 1;
390393
}
391394
anyhow::bail!("Failed to upload {error_count} out of {image_count} images")

0 commit comments

Comments
 (0)