Skip to content
Snippets Groups Projects
Commit 83a6a828 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

Fixed error messages for C++ interop client.

parent b309bc94
No related branches found
No related tags found
No related merge requests found
...@@ -451,7 +451,7 @@ bool InteropClient::DoResponseStreaming() { ...@@ -451,7 +451,7 @@ bool InteropClient::DoResponseStreaming() {
// most likely due to connection failure. // most likely due to connection failure.
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"DoResponseStreaming(): Read fewer streams (%d) than " "DoResponseStreaming(): Read fewer streams (%d) than "
"response_stream_sizes.size() (%" PRIuPTR ")", "response_stream_sizes.size() (%zu)",
i, response_stream_sizes.size()); i, response_stream_sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }
...@@ -576,11 +576,10 @@ bool InteropClient::DoServerCompressedStreaming() { ...@@ -576,11 +576,10 @@ bool InteropClient::DoServerCompressedStreaming() {
if (k < sizes.size()) { if (k < sizes.size()) {
// stream->Read() failed before reading all the expected messages. This // stream->Read() failed before reading all the expected messages. This
// is most likely due to a connection failure. // is most likely due to a connection failure.
gpr_log(GPR_ERROR, "%s(): Responses read (k=%" PRIuPTR gpr_log(GPR_ERROR,
") is " "%s(): Responses read (k=%zu) is less than the expected number of "
"less than the expected messages (i.e " "messages (%zu).",
"response_stream_sizes.size() (%" PRIuPTR ")).", __func__, k, sizes.size());
__func__, k, response_stream_sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }
...@@ -665,7 +664,7 @@ bool InteropClient::DoHalfDuplex() { ...@@ -665,7 +664,7 @@ bool InteropClient::DoHalfDuplex() {
// most likely due to a connection failure // most likely due to a connection failure
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"DoHalfDuplex(): Responses read (i=%d) are less than the expected " "DoHalfDuplex(): Responses read (i=%d) are less than the expected "
"number of messages response_stream_sizes.size() (%" PRIuPTR ")", "number of messages response_stream_sizes.size() (%zu)",
i, response_stream_sizes.size()); i, response_stream_sizes.size());
return TransientFailureOrAbort(); return TransientFailureOrAbort();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment