Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4395592

Browse files
committed
Merge pull request libgit2#3631 from ethomson/giterr_fixups
Minor `giterr` fixups
2 parents fb96b28 + cd59e0c commit 4395592

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

include/git2/errors.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ GIT_EXTERN(void) giterr_clear(void);
126126
* This error message is stored in thread-local storage and only applies
127127
* to the particular thread that this libgit2 call is made from.
128128
*
129-
* NOTE: Passing the `error_class` as GITERR_OS has a special behavior: we
130-
* attempt to append the system default error message for the last OS error
131-
* that occurred and then clear the last error. The specific implementation
132-
* of looking up and clearing this last OS error will vary by platform.
133-
*
134129
* @param error_class One of the `git_error_t` enum above describing the
135130
* general subsystem that is responsible for the error.
136131
* @param string The formatted error message to keep

src/unix/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int git__page_size(size_t *page_size)
1717
{
1818
long sc_page_size = sysconf(_SC_PAGE_SIZE);
1919
if (sc_page_size < 0) {
20-
giterr_set_str(GITERR_OS, "Can't determine system page size");
20+
giterr_set(GITERR_OS, "can't determine system page size");
2121
return -1;
2222
}
2323
*page_size = (size_t) sc_page_size;

0 commit comments

Comments
 (0)