Skip to content

Commit df61a1e

Browse files
authored
Merge pull request #111 from mjcheetham/fix-lg2error
Fix error message handling for LibGit2
2 parents 33535c6 + 41d6938 commit df61a1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/Microsoft.Git.CredentialManager/Interop/Native/LibGit2.Error.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public static void ThrowIfError(int result, string functionName = null)
165165
unsafe
166166
{
167167
string mainMessage = functionName is null
168-
? $"libgit2 '{functionName}' returned non-zero value"
169-
: "libgit2 returned non-zero value";
168+
? "libgit2 returned non-zero value"
169+
: $"libgit2 '{functionName}' returned non-zero value";
170170

171171
git_error* error = git_error_last();
172172

0 commit comments

Comments
 (0)