Skip to content

Commit

Permalink
add a debug message when prefixes are not matching
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 11, 2024
1 parent 9f11a5f commit 65a926d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ 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"
format!("Prefixes must have the same length: {:?} != {:?}", new_prefix, old_prefix)
);

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

0 comments on commit 65a926d

Please sign in to comment.