Skip to content

Commit

Permalink
GH-1433 rethrow exception so API can report error to user
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jul 25, 2023
1 parent b16135d commit 8698724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/trace_api_plugin/trace_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ struct trace_api_rpc_plugin_impl : public std::enable_shared_from_this<trace_api
ilog("initializing trace api rpc plugin");
std::shared_ptr<abi_data_handler> data_handler = std::make_shared<abi_data_handler>([](const exception_with_context& e){
log_exception(e, fc::log_level::debug);
if (std::get<0>(e)) { // rethrow so caller is notified of error
std::rethrow_exception(std::get<0>(e));
}
});

if( options.count("trace-rpc-abi") ) {
Expand Down

0 comments on commit 8698724

Please sign in to comment.