fix(compiler): Inform user where Quoted error was thrown

This commit is contained in:
Randall Koutnik 2017-04-11 16:26:12 -07:00 committed by Tobias Bosch
parent 82417b3ca5
commit a77b126d72
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,8 @@ class _AstToIrVisitor implements cdAst.AstVisitor {
visitAll(asts: cdAst.AST[], mode: _Mode): any { return asts.map(ast => this.visit(ast, mode)); }
visitQuote(ast: cdAst.Quote, mode: _Mode): any {
throw new Error('Quotes are not supported for evaluation!');
throw new Error(`Quotes are not supported for evaluation!
Statement: ${ast.uninterpretedExpression} located at ${ast.location}`);
}
private visit(ast: cdAst.AST, mode: _Mode): any {