Skip to content

Commit 035cc85

Browse files
committed
Expose libgit2 error code and category as ints
1 parent 57b3d10 commit 035cc85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibGit2Sharp/LibGit2SharpException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ protected LibGit2SharpException(SerializationInfo info, StreamingContext context
8282

8383
internal LibGit2SharpException(string message, GitErrorCode code, GitErrorCategory category) : this(FormatMessage(message, code, category))
8484
{
85-
Data.Add("libgit2.code", code);
86-
Data.Add("libgit2.category", category);
85+
Data.Add("libgit2.code", (int)code);
86+
Data.Add("libgit2.category", (int)category);
8787

8888
}
8989

0 commit comments

Comments
 (0)