We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5158b0b commit e265eb2Copy full SHA for e265eb2
tests/main.c
@@ -18,7 +18,9 @@ int main(int argc, char *argv[])
18
19
res = git_libgit2_init();
20
if (res < 0) {
21
- fprintf(stderr, "failed to init libgit2");
+ const git_error *err = git_error_last();
22
+ const char *msg = err ? err->message : "unknown failure";
23
+ fprintf(stderr, "failed to init libgit2: %s\n", msg);
24
return res;
25
}
26
0 commit comments