fix(userspace/engine): catch YAML parsing and validation errors with right context

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2023-01-09 17:30:49 +00:00
committed by poiana
parent 1b2c7ef7d9
commit d79d7112a0
3 changed files with 38 additions and 5 deletions

View File

@@ -113,6 +113,9 @@ namespace rule_loader
item_type item_type,
const std::string& item_name,
const context& parent);
context(
const YAML::Mark &mark,
const context& parent);
// Build a context from a condition expression +
// parser position. This does not use the original