Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Cleos print error message from server when parse json failed #10059

Merged
merged 3 commits into from
Feb 18, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions programs/cleos/httpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ namespace eosio { namespace client { namespace http {
response_result = fc::json::from_string(re);
} catch(...) {
// re reported below if print_response requested
std::cerr << "Error happens, below is the message received from server:" << std::endl;
heifner marked this conversation as resolved.
Show resolved Hide resolved
print_response = true;
}

if( print_response ) {
Expand Down