From 535ed0ec3969053456a23803c764ec9b671ca517 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 24 Sep 2024 14:58:09 +0200 Subject: [PATCH] chore: add a debug message when prefixes are not matching (#1058) --- src/cache.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cache.rs b/src/cache.rs index 2291285e..a4ce6de6 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -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());