Skip to content

Commit

Permalink
debug: resource api messages
Browse files Browse the repository at this point in the history
The resource api messages are not being passed forward,
and this looks like it might be relevant.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Nov 1, 2024
1 parent 280e555 commit 52b2c14
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resource/reapi/bindings/c/reapi_cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,8 @@ extern "C" int reapi_cli_stat (reapi_cli_ctx_t *ctx,
extern "C" const char *reapi_cli_get_err_msg (reapi_cli_ctx_t *ctx)
{
std::string err_buf = "";

if (ctx->rqt)
err_buf = ctx->rqt->get_resource_query_err_msg () + reapi_cli_t::get_err_message ()
err_buf = ctx->rqt->get_resource_query_err_msg () + reapi_cli_t::get_err_message ()
+ ctx->err_msg;
else
err_buf = reapi_cli_t::get_err_message () + ctx->err_msg;

return strdup (err_buf.c_str ());
}

Expand Down

0 comments on commit 52b2c14

Please sign in to comment.