Skip to content

Commit

Permalink
Keep error message from hiredis redisAsyncFormattedCommand()
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosv committed Aug 17, 2024
1 parent 0a57552 commit 7a80e7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hircluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -4232,6 +4232,7 @@ int redisClusterAsyncFormattedCommand(redisClusterAsyncContext *acc,
status = redisAsyncFormattedCommand(ac, redisClusterAsyncCallback, cad, cmd,
len);
if (status != REDIS_OK) {
__redisClusterAsyncSetError(acc, ac->err, ac->errstr);
goto error;
}

Expand Down Expand Up @@ -4312,9 +4313,10 @@ int redisClusterAsyncFormattedCommandToNode(redisClusterAsyncContext *acc,

status = redisAsyncFormattedCommand(ac, redisClusterAsyncCallback, cad, cmd,
len);
if (status != REDIS_OK)
if (status != REDIS_OK) {
__redisClusterAsyncSetError(acc, ac->err, ac->errstr);
goto error;

}
return REDIS_OK;

oom:
Expand Down

0 comments on commit 7a80e7c

Please sign in to comment.