From 43b27dcc6a181cf5e668eb302c960e9c034554ce Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 26 May 2018 00:50:56 -0400 Subject: dedupe-range: show dst index when on "open dst" errors --- lib/dedupe-range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dedupe-range.c b/lib/dedupe-range.c index c67b62c..b102b8f 100644 --- a/lib/dedupe-range.c +++ b/lib/dedupe-range.c @@ -37,7 +37,7 @@ void dedupe_range(uint64_t src_length, struct filepos src, struct filepos *dsts) for (size_t i = 0; i < dst_count; i++) { int dst_fd = open(dsts[i].filename, dsts[i].flags); if (dst_fd < 0) - error(EXIT_FAILURE, errno, "open dst: %s", dsts[i].filename); + error(EXIT_FAILURE, errno, "open dst[%zu]: %s", i, dsts[i].filename); range_info[i].dest_fd = dst_fd; range_info[i].dest_offset = dsts[i].offset; } -- cgit v1.2.3-2-g168b