Revert "Respect the application returned status code and propagate that (#29010)" (#29017)

This reverts commit a04739095e.
pull/29020/head
AJ Heller 3 years ago committed by GitHub
parent 047642c5c4
commit 851df6d46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/lib/security/credentials/plugin/plugin_credentials.cc

@ -65,10 +65,8 @@ grpc_plugin_credentials::PendingRequest::ProcessPluginResult(
const grpc_metadata* md, size_t num_md, grpc_status_code status,
const char* error_details) {
if (status != GRPC_STATUS_OK) {
return absl::Status(
static_cast<absl::StatusCode>(status),
absl::StrCat("Getting metadata from plugin failed with error: ",
error_details));
return absl::UnavailableError(absl::StrCat(
"Getting metadata from plugin failed with error: ", error_details));
} else {
bool seen_illegal_header = false;
for (size_t i = 0; i < num_md; ++i) {

Loading…
Cancel
Save