Skip to content

Commit

Permalink
Fix tutorial-02-redis_cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Aug 21, 2024
1 parent 487d013 commit c744900
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tutorial/tutorial-02-redis_cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ void redis_callback(WFRedisTask *task)
resp->get_result(val);
if (val.is_error())
{
fprintf(stderr, "Error reply. Need a password?\n");
state = WFT_STATE_TASK_ERROR;
fprintf(stderr, "%*s\n", (int)val.string_view()->size(),
val.string_view()->c_str());
state = WFT_STATE_TASK_ERROR;
}
break;
}
Expand Down

0 comments on commit c744900

Please sign in to comment.