diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 203f6b51a5e0fb..99734999d49f68 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -866,10 +866,9 @@ fn hard_link_appendvec_files_to_snapshot( )); fs::hard_link(&path, &hard_link_path).map_err(|e| { let err_msg = format!( - "hard-link appendvec file {} to {} failed. Error: {}", + "hard-link appendvec file {} to {} failed. Error: {e}", path.display(), hard_link_path.display(), - e, ); SnapshotError::Io(IoError::new(ErrorKind::Other, err_msg)) })?;