From ea02b67a93f2ce26508ed08c99eb9ed03a00acd3 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 17 May 2016 16:21:34 -0700 Subject: [PATCH] Provide more information for pack hardlink errors Signed-off-by: Patrick McCarty --- src/pack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pack.c b/src/pack.c index 16e9dd5..b34ea56 100644 --- a/src/pack.c +++ b/src/pack.c @@ -456,7 +456,7 @@ static int make_final_pack(struct packdata *pack) ret = link(from, to); if (ret) { - LOG(NULL, "Failed to link", "Manifest-delta-from-%i", pack->from); + LOG(NULL, "Failed to link", "Manifest-%s-delta-from-%i (%s)", pack->module, pack->from, strerror(errno)); } else { string_or_die(&bundle_delta, "Manifest-%s-delta-from-%i", pack->module, pack->from); } @@ -485,7 +485,7 @@ static int make_final_pack(struct packdata *pack) ret = link(from, to); if (ret) { - LOG(NULL, "Failed to link", "Manifest-delta-from-%i", pack->from); + LOG(NULL, "Failed to link", "Manifest-MoM-delta-from-%i (%s)", pack->from, strerror(errno)); } else { string_or_die(&mom_delta, "Manifest-MoM-delta-from-%i", pack->from); }