Display errors in expressions

This commit is contained in:
Jan Oberhauser
2020-04-03 19:37:28 +02:00
parent 1e484d5072
commit 9da0c1c884
2 changed files with 6 additions and 10 deletions

View File

@@ -166,11 +166,11 @@ export default mixins(
let returnValue;
try {
returnValue = this.resolveExpression(`=${variableName}`);
} catch (e) {
return 'invalid';
} catch (error) {
return `[invalid (${error.message})]`;
}
if (returnValue === undefined) {
return 'not found';
return '[not found]';
}
return returnValue;