Skip to content

Commit

Permalink
Give the query in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed Aug 1, 2024
1 parent 14852a8 commit b710e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/manipulator/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ impl<'a> MapperImpl<'a> {
let mut update = GraphUpdate::default();

for rule in self.config.rules.clone() {
let query = graphannis::aql::parse(&rule.query, false)?;
let query = graphannis::aql::parse(&rule.query, false)
.with_context(|| format!("could not parse query '{}'", &rule.query))?;
let result_it =
graphannis::aql::execute_query_on_graph(self.graph, &query, true, None)?;
for match_group in result_it {
Expand Down

0 comments on commit b710e0d

Please sign in to comment.