Skip to content

Commit

Permalink
use abls::StrAppend for error message in http_call (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwzhang authored Apr 7, 2020
1 parent a74de59 commit 0af8437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/envoy/http/service_control/http_call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class HttpCallImpl : public HttpCall,
std::string error_msg = absl::StrCat(
"Calling Google Service Control API failed with: ", status_code);
if (!body.empty()) {
error_msg += absl::StrCat(" and body: " + body);
absl::StrAppend(&error_msg, " and body: ", body);
}
auto grpc_code = Envoy::Grpc::Utility::httpToGrpcStatus(status_code);
on_done_(Status(static_cast<Code>(grpc_code), error_msg), body);
Expand Down

0 comments on commit 0af8437

Please sign in to comment.