Skip to content

Commit a77b126

Browse files
Randall Koutniktbosch
authored andcommitted
fix(compiler): Inform user where Quoted error was thrown
1 parent 82417b3 commit a77b126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compiler/src/compiler_util/expression_converter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ class _AstToIrVisitor implements cdAst.AstVisitor {
388388
visitAll(asts: cdAst.AST[], mode: _Mode): any { return asts.map(ast => this.visit(ast, mode)); }
389389

390390
visitQuote(ast: cdAst.Quote, mode: _Mode): any {
391-
throw new Error('Quotes are not supported for evaluation!');
391+
throw new Error(`Quotes are not supported for evaluation!
392+
Statement: ${ast.uninterpretedExpression} located at ${ast.location}`);
392393
}
393394

394395
private visit(ast: cdAst.AST, mode: _Mode): any {

0 commit comments

Comments
 (0)