Skip to content

Commit

Permalink
k/requests: used dedicated exception type
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maslanka <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Aug 5, 2022
1 parent 5b2a801 commit 9a200ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/kafka/server/requests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ process_result_stages process_generic(
if (ctx.header().key != api_versions_api::key &&
(ctx.header().version < handler->min_supported() ||
ctx.header().version > handler->max_supported())) {
throw std::runtime_error(fmt::format(
throw kafka_api_version_not_supported_exception(fmt::format(
"Unsupported version {} for {} API",
ctx.header().version,
handler->name()));
Expand Down

0 comments on commit 9a200ce

Please sign in to comment.