fix(core): Fix issue with combined expression not resolving if one is invalid (#3506)

This commit is contained in:
Jan Oberhauser
2022-06-13 11:48:02 -07:00
committed by GitHub
parent 9df3e30d36
commit 9ff57629c5

View File

@@ -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) => {
if (error instanceof ExpressionError) {
if (error.context.failExecution) {
throw error;
}
}
};
export class Expression {