Skip to content

Commit

Permalink
fix: use not retried err when get wrong parameter (#37707)
Browse files Browse the repository at this point in the history
#37508

Signed-off-by: lixinguo <[email protected]>
Co-authored-by: lixinguo <[email protected]>
  • Loading branch information
smellthemoon and lixinguo authored Nov 15, 2024
1 parent e4b6773 commit 7999367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/core/src/common/FieldMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ FieldMeta::enable_analyzer() const {

TokenizerParams
FieldMeta::get_analyzer_params() const {
Assert(enable_analyzer());
if (!enable_analyzer()) {
PanicInfo(
Unsupported,
fmt::format("unsupported text index when not enable analyzer"));
}
auto params = string_info_->params;
return ParseTokenizerParams(params);
}
Expand Down

0 comments on commit 7999367

Please sign in to comment.