Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Apr 13, 2024
1 parent b2b68de commit 8ee80f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions macros/shared/src/main/scala-2/zio/prelude/Macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ private[prelude] class Macros(val c: whitebox.Context) extends Liftables {
quotedAssertion match {
case Some(quotedAssertion) =>
expr.tree match {
case Literal(Constant(value)) =>
case Literal(Constant(value0)) =>
val (assertion, code) = getAssertion[T, A](quotedAssertion)

assertion.apply(value.asInstanceOf[A]) match {
assertion.apply(value0.asInstanceOf[A]) match {
case Left(error) =>
val message =
s"""
|$assertionErrorHeader
|${"\u001b[2m"}assertion = ${Console.RESET + Console.YELLOW}$code${Console.RESET}
|
|${error.render(value.toString)}
|${error.render(value0.toString)}
|""".stripMargin

c.abort(c.enclosingPosition, message)
Expand Down

0 comments on commit 8ee80f2

Please sign in to comment.