Uses Display in TieredStorageFile::new_readonly() panic message (#34148)
This commit is contained in:
parent
2d3333cb46
commit
8c8cd66095
|
@ -15,11 +15,10 @@ impl TieredStorageFile {
|
||||||
.read(true)
|
.read(true)
|
||||||
.create(false)
|
.create(false)
|
||||||
.open(&file_path)
|
.open(&file_path)
|
||||||
.unwrap_or_else(|e| {
|
.unwrap_or_else(|err| {
|
||||||
panic!(
|
panic!(
|
||||||
"[TieredStorageError] Unable to open {:?} as read-only: {:?}",
|
"[TieredStorageError] Unable to open {} as read-only: {err}",
|
||||||
file_path.as_ref().display(),
|
file_path.as_ref().display(),
|
||||||
e
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue