From 01b432cf3537aa5a13229336e500dc4f6638283c Mon Sep 17 00:00:00 2001 From: William Swanson Date: Wed, 9 Jul 2014 14:12:30 -0700 Subject: [PATCH] Properly report failure when expanding a packfile --- src/indexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexer.c b/src/indexer.c index 8daff3dc4..010de329b 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -460,7 +460,7 @@ static int append_to_pack(git_indexer *idx, const void *data, size_t size) /* add the extra space we need at the end */ if (p_ftruncate(idx->pack->mwf.fd, current_size + size) < 0) { - giterr_system_set(errno); + giterr_set(GITERR_OS, "Failed to increase size of pack file '%s'", idx->pack->pack_name); return -1; }