aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-08-11 15:49:44 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-08-11 15:49:44 -0700
commit8f52853e13a7a6252d1afd152d0ab51572f22401 (patch)
tree70ebb47ddc20c003fa0533f5e4dbfdf2cbbd3df2 /src/core
parentca9460bc6d0580bc979abf08bf17ba74473655c4 (diff)
Fixing error code as discussed during the review.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/security/client_auth_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/security/client_auth_filter.c b/src/core/security/client_auth_filter.c
index ccd014312e..410852da52 100644
--- a/src/core/security/client_auth_filter.c
+++ b/src/core/security/client_auth_filter.c
@@ -183,7 +183,7 @@ static void on_host_checked(void *user_data, grpc_security_status status) {
char *error_msg;
gpr_asprintf(&error_msg, "Invalid host %s set in :authority metadata.",
grpc_mdstr_as_c_string(calld->host));
- bubble_up_error(elem, GRPC_STATUS_FAILED_PRECONDITION, error_msg);
+ bubble_up_error(elem, GRPC_STATUS_INVALID_ARGUMENT, error_msg);
gpr_free(error_msg);
}
}
@@ -253,7 +253,7 @@ static void auth_start_transport_op(grpc_call_element *elem,
gpr_asprintf(&error_msg,
"Invalid host %s set in :authority metadata.",
call_host);
- bubble_up_error(elem, GRPC_STATUS_FAILED_PRECONDITION, error_msg);
+ bubble_up_error(elem, GRPC_STATUS_INVALID_ARGUMENT, error_msg);
gpr_free(error_msg);
}
return; /* early exit */