Fix final error direct from load_rules

Next is tackling compile_filter.
This commit is contained in:
Mark Stemm
2019-07-03 15:15:49 -07:00
parent b710217181
commit 4a0bb56586

View File

@@ -613,7 +613,7 @@ function load_rules(sinsp_lua_parser,
formatter = formats.formatter(v['source'], v['output'])
formats.free_formatter(v['source'], formatter)
else
error ("Unexpected type in load_rule: "..filter_ast.type)
return false, indices[i], 1, "Unexpected type in load_rule: "..filter_ast.type
end
::next_rule::