Skip to content

Commit 7a63bd5

Browse files
authored
Fix grpc_wsa_error (grpc#29917)
1 parent 53ce85c commit 7a63bd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/lib/iomgr/error.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ absl::Status grpc_wsa_error(const grpc_core::DebugLocation& location, int err,
8787
absl::Status s =
8888
StatusCreate(absl::StatusCode::kUnavailable, "WSA Error", location, {});
8989
StatusSetInt(&s, grpc_core::StatusIntProperty::kWsaError, err);
90+
StatusSetInt(&s, grpc_core::StatusIntProperty::kRpcStatus,
91+
GRPC_STATUS_UNAVAILABLE);
9092
StatusSetStr(&s, grpc_core::StatusStrProperty::kOsError, utf8_message);
9193
StatusSetStr(&s, grpc_core::StatusStrProperty::kSyscall, call_name);
9294
return s;

0 commit comments

Comments
 (0)