aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-12-09 11:10:23 -0800
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-12-09 11:10:23 -0800
commit5efe9255c0f879f555fc9118e833bee513b14622 (patch)
tree47cd023dd8ed0e94b24493318b25dc6a0fd16515 /src
parentab4f2b1a53911b8d01f6539332df020515a44edb (diff)
parent13affcb8e9f8a83682514fd64ac7b3130950629a (diff)
Merge pull request #4322 from yang-g/fixit_channel_c
Fix error messages.
Diffstat (limited to 'src')
-rw-r--r--src/core/surface/channel.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c
index 859197412b..14fe97c30d 100644
--- a/src/core/surface/channel.c
+++ b/src/core/surface/channel.c
@@ -113,7 +113,7 @@ grpc_channel *grpc_channel_create_from_filters(
}
} else if (0 == strcmp(args->args[i].key, GRPC_ARG_DEFAULT_AUTHORITY)) {
if (args->args[i].type != GRPC_ARG_STRING) {
- gpr_log(GPR_ERROR, "%s: must be an string",
+ gpr_log(GPR_ERROR, "%s ignored: it must be a string",
GRPC_ARG_DEFAULT_AUTHORITY);
} else {
if (channel->default_authority) {
@@ -126,13 +126,14 @@ grpc_channel *grpc_channel_create_from_filters(
} else if (0 ==
strcmp(args->args[i].key, GRPC_SSL_TARGET_NAME_OVERRIDE_ARG)) {
if (args->args[i].type != GRPC_ARG_STRING) {
- gpr_log(GPR_ERROR, "%s: must be an string",
+ gpr_log(GPR_ERROR, "%s ignored: it must be a string",
GRPC_SSL_TARGET_NAME_OVERRIDE_ARG);
} else {
if (channel->default_authority) {
/* other ways of setting this (notably ssl) take precedence */
- gpr_log(GPR_ERROR, "%s: default host already set some other way",
- GRPC_ARG_DEFAULT_AUTHORITY);
+ gpr_log(GPR_ERROR,
+ "%s ignored: default host already set some other way",
+ GRPC_SSL_TARGET_NAME_OVERRIDE_ARG);
} else {
channel->default_authority = grpc_mdelem_from_strings(
":authority", args->args[i].value.string);