diff --git a/query_modules/text_search_module.cpp b/query_modules/text_search_module.cpp index 6819fcd9d..a5c0b346b 100644 --- a/query_modules/text_search_module.cpp +++ b/query_modules/text_search_module.cpp @@ -29,7 +29,7 @@ void TextSearch::Search(mgp_list *args, mgp_graph *memgraph_graph, mgp_result *r // 1. See if the given label is text-indexed if (!mgp::graph_has_text_index(memgraph_graph, label.data())) { - return; + record_factory.SetErrorMessage("The given text index doesn’t exist in Memgraph"); } // 2. Run a text search of that index and return the search results