Skip to content

Commit 7f48218

Browse files
authored
Merge pull request #9 from OctopusDeploy/dylan/set-native-error
Set the native libgit2 error message when an exception is thrown in the subtransport
2 parents 729d265 + 6d0e29a commit 7f48218

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LibGit2Sharp/SmartSubtransportStream.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ private static int SetError(SmartSubtransportStream stream, Exception caught)
119119
{
120120
errorCode = ((NativeException)ret).ErrorCode;
121121
}
122+
else
123+
{
124+
Proxy.git_error_set_str(GitErrorCategory.Unknown, caught);
125+
}
122126

123127
return (int)errorCode;
124128
}

0 commit comments

Comments
 (0)