Improve is:X failure message

This commit is contained in:
Matchu 2023-07-26 11:06:36 -07:00 committed by Matchu
parent 72461972ca
commit 4cd8944bf4

View file

@ -44,7 +44,7 @@ class Item
filters << NPFilter.new(is_positive) filters << NPFilter.new(is_positive)
else else
message = I18n.translate('items.search.errors.not_found.label', message = I18n.translate('items.search.errors.not_found.label',
:label => value) :label => "is:#{value}")
raise Item::Search::Error, message raise Item::Search::Error, message
end end
else else