Skip to content

Commit

Permalink
fix(compiler): Inform user where Quoted error was thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Koutnik authored and tbosch committed Apr 17, 2017
1 parent 82417b3 commit a77b126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/compiler/src/compiler_util/expression_converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a77b126

Please sign in to comment.