mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: change error message
This commit is contained in:
parent
1c6c5579d7
commit
b094d42030
3 changed files with 12 additions and 14 deletions
|
@ -16,7 +16,7 @@ Pointer<Pointer<git_repository>> open(String path) {
|
|||
calloc.free(pathC);
|
||||
|
||||
if (error < 0) {
|
||||
throw LibGit2Error(error, libgit2.git_error_last());
|
||||
throw LibGit2Error(libgit2.git_error_last());
|
||||
}
|
||||
|
||||
return out;
|
||||
|
@ -34,7 +34,7 @@ Pointer<Pointer<git_repository>> openBare(String barePath) {
|
|||
calloc.free(barePathC);
|
||||
|
||||
if (error < 0) {
|
||||
throw LibGit2Error(error, libgit2.git_error_last());
|
||||
throw LibGit2Error(libgit2.git_error_last());
|
||||
}
|
||||
|
||||
return out;
|
||||
|
@ -85,7 +85,7 @@ Pointer<Pointer<git_object>> revParseSingle(
|
|||
calloc.free(specC);
|
||||
|
||||
if (error < 0) {
|
||||
throw LibGit2Error(error, libgit2.git_error_last());
|
||||
throw LibGit2Error(libgit2.git_error_last());
|
||||
}
|
||||
|
||||
return out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue