errors: update docs for giterr changes

This commit is contained in:
Edward Thomson
2019-01-10 22:48:03 +00:00
parent 00c66dfd3b
commit a27a4de6f8
3 changed files with 19 additions and 19 deletions

View File

@@ -136,11 +136,11 @@ Check
[`include/git2/errors.h`](https://github.com/libgit2/libgit2/blob/development/include/git2/errors.h)
for the return codes already defined.
In your implementation, use `giterr_set()` to provide extended error
In your implementation, use `git_error_set()` to provide extended error
information to callers.
If a `libgit2` function internally invokes another function that reports an
error, but the error is not propagated up, use `giterr_clear()` to prevent
error, but the error is not propagated up, use `git_error_clear()` to prevent
callers from getting the wrong error message later on.