mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
add more context to error
This commit is contained in:
committed by
Dmitry Rodionov
parent
0be7ed0cb5
commit
8a86276a6e
@@ -182,7 +182,13 @@ async fn try_upload_checkpoint<
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
ensure!(!files_to_upload.is_empty(), "No files to upload");
|
||||
|
||||
ensure!(
|
||||
!files_to_upload.is_empty(),
|
||||
"No files to upload. Upload request was: {:?}, already uploaded files: {:?}",
|
||||
new_checkpoint.layers,
|
||||
files_to_skip,
|
||||
);
|
||||
|
||||
compression::archive_files_as_stream(
|
||||
&timeline_dir,
|
||||
|
||||
Reference in New Issue
Block a user