mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Log connection errors
This commit is contained in:
@@ -378,7 +378,10 @@ async fn get_backup_inner(context: &Context, qr: Qr) -> Result<()> {
|
|||||||
context.emit_event(ReceiveProgress::Completed.into());
|
context.emit_event(ReceiveProgress::Completed.into());
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
Err(TransferError::ConnectionError(_)) => continue,
|
Err(TransferError::ConnectionError(err)) => {
|
||||||
|
warn!(context, "Connection error: {err:#}.");
|
||||||
|
continue;
|
||||||
|
},
|
||||||
Err(TransferError::Other(err)) => {
|
Err(TransferError::Other(err)) => {
|
||||||
// Clean up any blobs we already wrote.
|
// Clean up any blobs we already wrote.
|
||||||
let readdir = fs::read_dir(context.get_blobdir()).await?;
|
let readdir = fs::read_dir(context.get_blobdir()).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user