Uses Display in TieredStorageFile::new_readonly() panic message (#34148)

This commit is contained in:
Brooks 2023-11-17 15:24:05 -05:00 committed by GitHub
parent 2d3333cb46
commit 8c8cd66095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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
);
}),
)