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.
LibGit2SharpException
1 parent 50d6978 commit 1436b68Copy full SHA for 1436b68
LibGit2Sharp/Core/Ensure.cs
@@ -148,7 +148,7 @@ private static unsafe void HandleError(int result)
148
Func<string, GitErrorCategory, LibGit2SharpException> exceptionBuilder;
149
if (!GitErrorsToLibGit2SharpExceptions.TryGetValue((GitErrorCode)result, out exceptionBuilder))
150
{
151
- exceptionBuilder = (m, c) => new LibGit2SharpException(m, c);
+ exceptionBuilder = (m, c) => new LibGit2SharpException($"{m}{(c == GitErrorCategory.Unknown ? string.Empty: $"\nGitErrorCode{c}")}");
152
}
153
154
throw exceptionBuilder(errorMessage, errorCategory);
0 commit comments