summaryrefslogtreecommitdiff
path: root/src/errors.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-02-05 09:29:37 +0200
committerVicent Marti <tanoku@gmail.com>2011-02-05 09:29:37 +0200
commitc836c332f17ff2da8bdf6d18fb3d59eac2586ca9 (patch)
tree724bddb50a0c8f25e59845f9bd0587fb6724457a /src/errors.c
parent4569bfa55a44be3a03cf925df44bf1af0f21ddaa (diff)
downloadlibgit2-c836c332f17ff2da8bdf6d18fb3d59eac2586ca9.tar.gz
Make more methods return error codes
git_revwalk_next now returns an error code when the iteration is over. git_repository_index now returns an error code when the index file could not be opened. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/errors.c')
-rw-r--r--src/errors.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c
index 34a15b258..3616fdb93 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -24,7 +24,9 @@ static struct {
{GIT_EINVALIDREFNAME, "The name of the reference is not valid"},
{GIT_EREFCORRUPTED, "The specified reference has its data corrupted"},
{GIT_ETOONESTEDSYMREF, "The specified symbolic reference is too deeply nested"},
- {GIT_EPACKEDREFSCORRUPTED, "The pack-refs file is either corrupted of its format is not currently supported"}
+ {GIT_EPACKEDREFSCORRUPTED, "The pack-refs file is either corrupted of its format is not currently supported"},
+ {GIT_EINVALIDPATH, "The path is invalid" },
+ {GIT_EREVWALKOVER, "The revision walker is empty; there are no more commits left to iterate"}
};
const char *git_strerror(int num)