Skip to content

Commit

Permalink
chore: add a debug message when prefixes are not matching (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Sep 24, 2024
1 parent 07fc8d8 commit 535ed0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ fn replace_prefix(file: &Path, old_prefix: &Path, new_prefix: &Path) -> Result<(
assert_eq!(
new_prefix_bytes.len(),
old_prefix_bytes.len(),
"Prefixes must have the same length"
"Prefixes must have the same length: {:?} != {:?}",
new_prefix,
old_prefix
);

let mut output = Vec::with_capacity(mmap.len());
Expand Down

0 comments on commit 535ed0e

Please sign in to comment.