Skip to content

Commit

Permalink
[native] Improve an error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkdutta committed Jan 8, 2025
1 parent b230be1 commit 99c3b83
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions presto-native-execution/presto_cpp/main/http/HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ HttpResponse::nextAllocationSize(uint64_t dataLength) const {
}

std::string HttpResponse::dumpBodyChain() const {
std::string responseBody;
if (!bodyChain_.empty()) {
responseBody = util::extractMessageBody(bodyChain_);
}
return responseBody;
return bodyChain_.empty() ? "Empty response" : util::extractMessageBody(bodyChain_);
}

class ResponseHandler : public proxygen::HTTPTransactionHandler {
Expand Down

0 comments on commit 99c3b83

Please sign in to comment.