Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pratheep-kumar committed Oct 7, 2024
1 parent ebc76f6 commit 5821336
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,9 @@ SplitRequestPtr ScanRequest::create(Router& router, Common::Redis::RespValuePtr&
shard_idx = std::stoi(index);
} catch (const std::invalid_argument& e) {
ENVOY_LOG(error, "Invalid shard index: '{}'", e.what());
callbacks_.onResponse(Common::Redis::Utility::makeError(
fmt::format("unexpected or wrong shard index from cursor")));
callbacks.onResponse(Common::Redis::Utility::makeError(
fmt::format("ERR invalid cursor")));
return nullptr;
}
}

Expand Down

0 comments on commit 5821336

Please sign in to comment.