Skip to content

Commit 50cd1bd

Browse files
committed
Fix asExpr error message
1 parent c30fc8e commit 50cd1bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
9797
new ExprImpl(self, SpliceScope.getCurrent)
9898
else self match
9999
case TermTypeTest(self) => throw new Exception("Expected an expression. This is a partially applied Term. Try eta-expanding the term first.")
100-
case _ => throw new Exception("Expected a Term but was: " + self)
100+
case _ => throw new Exception("Expected a Term but was: " + Printer.TreeStructure.show(self))
101101
end extension
102102

103103
extension (self: Tree)

0 commit comments

Comments
 (0)