summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-05 18:20:00 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:08 +0200
commit061047ccb6d9453928fcd3baf94b18fad792f1a0 (patch)
tree5cb646978f99c25e37218e090655c0a10b469893 /src
parent2f512ff81e1705c0246416f2292b53540f88fd19 (diff)
downloadlibgit2-061047ccb6d9453928fcd3baf94b18fad792f1a0.tar.gz
Rethrow pack entry offset error
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src')
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index c84f007bc..f0ebf9d37 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -475,7 +475,7 @@ off_t get_delta_base(
} else if (type == GIT_OBJ_REF_DELTA) {
/* The base entry _must_ be in the same pack */
if (pack_entry_find_offset(&base_offset, &unused, p, (git_oid *)base_info, GIT_OID_HEXSZ) < GIT_SUCCESS)
- return git__throw(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack");
+ return git__rethrow(GIT_EPACKCORRUPTED, "Base entry delta is not in the same pack");
*curpos += 20;
} else
return 0;