diff options
-rw-r--r-- | lib/dedupe-range.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dedupe-range.c b/lib/dedupe-range.c index c9e9bb0..614c9c5 100644 --- a/lib/dedupe-range.c +++ b/lib/dedupe-range.c @@ -89,7 +89,10 @@ void dedupe_range(uint64_t src_length, struct filepos src, struct filepos *dsts) range->info[i].dest_offset += range->info[i].bytes_deduped; break; default: - assert(false); + assert(range->info[i].status < 0); + error(0, -range->info[i].status, "dedupe: %s", dsts[files_deduped+i].filename); + erred = true; + break; } } if (erred == true) |