From 851df6d46db90172427ad13178d0f319c6af889e Mon Sep 17 00:00:00 2001 From: AJ Heller Date: Thu, 3 Mar 2022 21:04:56 -0800 Subject: [PATCH] Revert "Respect the application returned status code and propagate that (#29010)" (#29017) This reverts commit a04739095eb0e647a9d4005cc88641c44092b577. --- .../lib/security/credentials/plugin/plugin_credentials.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/lib/security/credentials/plugin/plugin_credentials.cc b/src/core/lib/security/credentials/plugin/plugin_credentials.cc index 4042669ed54..2414d322951 100644 --- a/src/core/lib/security/credentials/plugin/plugin_credentials.cc +++ b/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(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) {