summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-05-05 01:49:27 +0300
committerVicent Marti <tanoku@gmail.com>2011-05-09 21:58:02 +0300
commit5eb0fab846d6b2f8bcf3caf7a9e33afa36753850 (patch)
tree3ae0596ff22aff78244d559bd5810d44877df9eb /include/git2/errors.h
parent3f53c97113deb986b58aac8bb89f76b47e76507b (diff)
downloadlibgit2-5eb0fab846d6b2f8bcf3caf7a9e33afa36753850.tar.gz
errors: Update external API with new `git_lasterror`
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index 627e67c70..fde0dc73d 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -34,11 +34,11 @@
GIT_BEGIN_DECL
/**
- * strerror() for the Git library
- * @param num The error code to explain
- * @return a string explaining the error code
+ * Return a detailed error string with the latest error
+ * that occurred in the library.
+ * @return a string explaining the error
*/
-GIT_EXTERN(const char *) git_strerror(int num);
+GIT_EXTERN(const char *) git_lasterror(void);
/** @} */
GIT_END_DECL