Skip to content

Commit 84f6d84

Browse files
committed
TryGetServerErrorReason should be virtual
This commit changes TryGetServerErrorReason back to being virtual, otherwise this would be a breaking change in 7.x
1 parent 4646e4b commit 84f6d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch.Net/Responses/ElasticsearchResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public virtual bool TryGetServerError(out ServerError serverError)
6060
return ServerError.TryCreate(stream, out serverError);
6161
}
6262

63-
protected bool TryGetServerErrorReason(out string reason)
63+
protected virtual bool TryGetServerErrorReason(out string reason)
6464
{
6565
reason = null;
6666
if (!TryGetServerError(out var serverError)) return false;

0 commit comments

Comments
 (0)