diff options
author | William Swanson <swansontec@gmail.com> | 2014-07-09 14:12:30 -0700 |
---|---|---|
committer | William Swanson <swansontec@gmail.com> | 2014-07-09 14:12:30 -0700 |
commit | 01b432cf3537aa5a13229336e500dc4f6638283c (patch) | |
tree | 50d10852f36f7a3ec77860fc8715d9209e96318d /src | |
parent | 18eb6ec8233cb3cb607abdf289da6a57cc252bb2 (diff) | |
download | libgit2-01b432cf3537aa5a13229336e500dc4f6638283c.tar.gz |
Properly report failure when expanding a packfile
Diffstat (limited to 'src')
-rw-r--r-- | src/indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |