Skip to content

Commit

Permalink
Print the value of std::error_code instead
Browse files Browse the repository at this point in the history
  • Loading branch information
YanzhaoW authored and jose-luis-rs committed May 14, 2024
1 parent 49c6742 commit 3a118c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r3bsource/base/utils/R3BUcesbLauncher.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ namespace R3B
auto err_code = std::error_code{};
if (not ucesb_server_->wait_for(CHILD_CLOSE_WAITING_TIME, err_code))
{
R3BLOG(warn, fmt::format("Failed to close Ucesb server! Error code: {}", err_code));
R3BLOG(warn, fmt::format("Failed to close Ucesb server! Error code: {}", err_code.value()));
ucesb_server_->terminate(err_code);
R3BLOG(warn, "Killing Ucesb server");
}
Expand Down

0 comments on commit 3a118c5

Please sign in to comment.