File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use std::fs::File;
33use std:: io:: BufReader ;
44use std:: path:: { Path , PathBuf } ;
55use std:: str:: FromStr as _;
6+ use std:: time:: Duration ;
67
78use anyhow:: { Context as _, Result } ;
89use 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" )
You can’t perform that action at this time.
0 commit comments