Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-26 17:05:07 +0400
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-26 17:38:42 +0400
commit3aa351ea0fa0d9e8d155801cdac1e83d3b1717c1 (patch)
tree9b2d8994245744ca0d2c2d07ef2d61e420451172 /src/filter.c
parenteb3d71a5bcd78cb4840e62194e8998141508af88 (diff)
error handling: move the missing parts over to the new error handling
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c
index d2d113409..88ad0295f 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -95,8 +95,8 @@ int git_filters_load(git_vector *filters, git_repository *repo, const char *path
if (error < GIT_SUCCESS)
return error;
} else {
- return git__throw(GIT_ENOTIMPLEMENTED,
- "Worktree filters are not implemented yet");
+ giterr_set(GITERR_INVALID, "Worktree filters are not implemented yet");
+ return GIT_ENOTIMPLEMENTED;
}
return (int)filters->length;