Fix grpc_os_error (#29944)

pull/29945/head
Esun Kim 3 years ago committed by GitHub
parent c6811f0fb7
commit c62364ac3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/iomgr/error.cc

@ -71,7 +71,7 @@ std::string grpc_error_std_string(absl::Status error) {
absl::Status grpc_os_error(const grpc_core::DebugLocation& location, int err,
const char* call_name) {
absl::Status s =
StatusCreate(absl::StatusCode::kUnknown, "OS Error", location, {});
StatusCreate(absl::StatusCode::kUnknown, strerror(err), location, {});
grpc_core::StatusSetInt(&s, grpc_core::StatusIntProperty::kErrorNo, err);
grpc_core::StatusSetStr(&s, grpc_core::StatusStrProperty::kOsError,
strerror(err));

Loading…
Cancel
Save