Return an internal error in the case of matching word is invalid

This commit is contained in:
ManyTheFish 2023-03-01 18:52:14 +01:00
parent 900bae3d9d
commit 37489fd495
5 changed files with 18 additions and 8 deletions

View file

@ -59,6 +59,8 @@ pub enum InternalError {
Utf8(#[from] str::Utf8Error),
#[error("An indexation process was explicitly aborted.")]
AbortedIndexation,
#[error("The matching words list contains at least one invalid member.")]
InvalidMatchingWords,
}
#[derive(Error, Debug)]