Commit ace65671 by William Swanson Committed by Vicent Marti

Properly report failure when expanding a packfile

parent f8b4093a
...@@ -453,7 +453,7 @@ static int append_to_pack(git_indexer *idx, const void *data, size_t size) ...@@ -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 */ /* add the extra space we need at the end */
if (p_ftruncate(idx->pack->mwf.fd, current_size + size) < 0) { 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; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment