Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/conditions/vrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ impl Conditional for Vrl {
let result = result
.map(|value| match value {
Value::Boolean(boolean) => boolean,
_ => false,
_ => {
emit!(VrlConditionExecutionError {
error: "VRL condition did not return a boolean type"
});
false
}
})
.unwrap_or_else(|err| {
emit!(VrlConditionExecutionError {
Expand Down