Emmet: Show error when failed to eval math expression Fixes #31281

This commit is contained in:
Ramya Achutha Rao 2017-07-30 18:51:05 -07:00
parent 24d905a2b6
commit da83dff300

View file

@ -25,6 +25,7 @@ export function evaluateMathExpression() {
const result = String(evaluate(stream, true));
editBuilder.replace(new vscode.Range(stream.pos, pos), result);
} catch (err) {
vscode.window.showErrorMessage('Could not evaluate expression');
// Ignore error since most likely its because of non-math expression
console.warn('Math evaluation error', err);
}