Skip to content

Commit

Permalink
fix(core): Fix issue with combined expression not resolving if one is…
Browse files Browse the repository at this point in the history
… invalid (#3506)
  • Loading branch information
janober authored Jun 13, 2022
1 parent 9df3e30 commit 9ff5762
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/workflow/src/Expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ tmpl.brackets.set('{{ }}');
// Make sure that error get forwarded
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
tmpl.tmpl.errorHandler = (error: Error) => {
throw error;
if (error instanceof ExpressionError) {
if (error.context.failExecution) {
throw error;
}
}
};

export class Expression {
Expand Down

0 comments on commit 9ff5762

Please sign in to comment.