mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Print error better
This commit is contained in:
@@ -370,7 +370,10 @@ pub(crate) async fn main(cmd: &LayerCmd) -> Result<()> {
|
||||
file_key,
|
||||
)
|
||||
.await;
|
||||
println!("Statistics for {file_name}: {stats:#?}\n");
|
||||
match stats {
|
||||
Ok(stats) => println!("Statistics for {file_name}: {stats:#?}\n"),
|
||||
Err(e) => eprintln!("Error for {file_name}: {e:?}"),
|
||||
};
|
||||
});
|
||||
}
|
||||
while let Some(_res) = tasks.join_next().await {}
|
||||
|
||||
Reference in New Issue
Block a user