diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-12 22:55:40 -0700 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-12 22:55:40 -0700 |
commit | e1de726c15937a8dbf81d12ef0c872cf6576ebd0 (patch) | |
tree | 84b437dd23e8250b0a4f983875fb3849569ad63a /src/object.c | |
parent | dda708e78f3c3f43d814d46c29ab9f2b9d47ed5c (diff) | |
download | libgit2-e1de726c15937a8dbf81d12ef0c872cf6576ebd0.tar.gz |
Migrate ODB files to new error handling
This migrates odb.c, odb_loose.c, odb_pack.c and pack.c to
the new style of error handling. Also got the unix and win32
versions of map.c. There are some minor changes to other
files but no others were completely converted.
This also contains an update to filebuf so that a zeroed out
filebuf will not think that the fd (== 0) is actually open
(and inadvertently call close() on fd 0 if cleaned up).
Lastly, this was built and tested on win32 and contains a
bunch of fixes for the win32 build which was pretty broken.
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index 043001599..bb27f71c1 100644 --- a/src/object.c +++ b/src/object.c @@ -92,7 +92,7 @@ int git_object_lookup_prefix( assert(repo && object_out && id); if (len < GIT_OID_MINPREFIXLEN) - return git__throw(GIT_EAMBIGUOUSOIDPREFIX, + return git__throw(GIT_EAMBIGUOUS, "Failed to lookup object. Prefix length is lower than %d.", GIT_OID_MINPREFIXLEN); error = git_repository_odb__weakptr(&odb, repo); |