From 4cd8944bf4dd4283da071bc4ef570de3535324bb Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 26 Jul 2023 11:06:36 -0700 Subject: [PATCH] Improve is:X failure message --- app/models/item/search/query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item/search/query.rb b/app/models/item/search/query.rb index 0c529ae2..4ac67c7b 100644 --- a/app/models/item/search/query.rb +++ b/app/models/item/search/query.rb @@ -44,7 +44,7 @@ class Item filters << NPFilter.new(is_positive) else message = I18n.translate('items.search.errors.not_found.label', - :label => value) + :label => "is:#{value}") raise Item::Search::Error, message end else