Use report.errorAndAbort in macro

This commit is contained in:
Adrien Piquerez 2024-02-07 11:55:27 +01:00
parent e18ddb1666
commit cabf08e5f0
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ trait Cont:
given qctx.type = qctx
Expr
.summon[Applicative[F]]
.getOrElse(sys.error(s"Applicative[F] not found for ${TypeRepr.of[F].typeSymbol}"))
.getOrElse(
report.errorAndAbort(s"Applicative[F] not found for ${TypeRepr.of[F].typeSymbol}")
)
/**
* Implementation of a macro that provides a direct syntax for applicative functors and monads.