summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Swanson <swansontec@gmail.com>2014-07-09 14:12:30 -0700
committerVicent Marti <tanoku@gmail.com>2014-08-05 02:09:09 +0200
commitace6567146699af1524dcb9df397c14798be655a (patch)
treee307ab27d80fbb361d6e1200d36729bf01b188f9
parentf8b4093a72e522731d4956e1d64b668da869e923 (diff)
downloadlibgit2-ace6567146699af1524dcb9df397c14798be655a.tar.gz
Properly report failure when expanding a packfile
-rw-r--r--src/indexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c
index 25c3d053..0b1cf3c7 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -453,7 +453,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;
}