Skip to content

Commit

Permalink
Uses Display in TieredStorageFile::new_readonly() panic message (sola…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 17, 2023
1 parent 2d3333c commit 8c8cd66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions accounts-db/src/tiered_storage/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ impl TieredStorageFile {
.read(true)
.create(false)
.open(&file_path)
.unwrap_or_else(|e| {
.unwrap_or_else(|err| {
panic!(
"[TieredStorageError] Unable to open {:?} as read-only: {:?}",
"[TieredStorageError] Unable to open {} as read-only: {err}",
file_path.as_ref().display(),
e
);
}),
)
Expand Down

0 comments on commit 8c8cd66

Please sign in to comment.