Add error message

This commit is contained in:
Ante Pušić 2024-01-18 01:49:22 +01:00
parent 88f8a0ae68
commit 809a990cd5

View File

@ -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 doesnt exist in Memgraph");
}
// 2. Run a text search of that index and return the search results