From ab7941b5d97e5b90bebe6278fcf5351b6a4d5262 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 28 Jun 2011 21:04:59 +0200 Subject: test: Properly show error messages --- include/git2/errors.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/git2') diff --git a/include/git2/errors.h b/include/git2/errors.h index 09b1f26b..253cb6ae 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -146,6 +146,11 @@ GIT_EXTERN(const char *) git_lasterror(void); */ GIT_EXTERN(const char *) git_strerror(int num); +/** + * Clear the latest library error + */ +GIT_EXTERN(void) git_clearerror(void); + /** @} */ GIT_END_DECL #endif -- cgit v1.2.1