Skip to content

Commit ce771b9

Browse files
committed
chore: add a comment
Add error handling to bail out on parse failure
1 parent aa62dc3 commit ce771b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/zeebe/util/feelUtility.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ export function getResultContext(expression, variables = {}) {
148148
try {
149149
contextualParser.parse(expression);
150150
} catch (error) {
151+
152+
// bail out in case of an error
151153
return latestVariables;
152154
}
153155

@@ -429,4 +431,4 @@ export function getElementNamesToRemove(moddleElement, inputOutput) {
429431
}
430432

431433
return namesToFilter;
432-
}
434+
}

0 commit comments

Comments
 (0)