Skip to content

Commit

Permalink
feat: improved error message in object cache get_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
sdd committed Aug 17, 2024
1 parent 05a4447 commit 53f21e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/iceberg/src/io/object_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ impl ObjectCache {
.entry_by_ref(&key)
.or_try_insert_with(self.fetch_and_parse_manifest(manifest_file))
.await
.map_err(|err| Error::new(ErrorKind::Unexpected, err.as_ref().message()))?
.map_err(|err| {
Error::new(
ErrorKind::Unexpected,
format!("Failed to load manifest {}", manifest_file.manifest_path),
)
.with_source(err)
})?
.into_value();

match cache_entry {
Expand Down

0 comments on commit 53f21e7

Please sign in to comment.