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

This commit is contained in:
Jan Oberhauser
2022-06-13 20:48:02 +02:00
committed by GitHub
parent 9df3e30d36
commit 9ff57629c5
+5 -1
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) => {
throw error;
if (error instanceof ExpressionError) {
if (error.context.failExecution) {
throw error;
}
}
};
export class Expression {