feat: console the expression errors

This commit is contained in:
MrWindlike 2022-04-06 22:46:47 +08:00
parent 20552960f5
commit 2727dd5716

View File

@ -160,7 +160,11 @@ export class StateManager {
return result;
} catch (error) {
if (error instanceof Error) {
return new ExpressionError(error.message);
const expressionError = new ExpressionError(error.message);
console.error(expressionError);
return expressionError;
}
return undefined;