fix(compiler): Inform user where Quoted error was thrown
This commit is contained in:

committed by
Miško Hevery

parent
5cab3b146e
commit
be406f8464
@ -388,7 +388,8 @@ class _AstToIrVisitor implements cdAst.AstVisitor {
|
|||||||
visitAll(asts: cdAst.AST[], mode: _Mode): any { return asts.map(ast => this.visit(ast, mode)); }
|
visitAll(asts: cdAst.AST[], mode: _Mode): any { return asts.map(ast => this.visit(ast, mode)); }
|
||||||
|
|
||||||
visitQuote(ast: cdAst.Quote, mode: _Mode): any {
|
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 {
|
private visit(ast: cdAst.AST, mode: _Mode): any {
|
||||||
|
Reference in New Issue
Block a user