mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
Use report.errorAndAbort in macro
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user