Skip to content

Commit

Permalink
Added distinct error message for parsing and decoding errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
“Tim authored and “Tim committed Nov 6, 2024
1 parent 58fbbad commit d3307bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class BakerWithHttpResponse(val baker: Baker, ec: ExecutionContext) extends Lazy
case Right(json: io.circe.Json) =>
json.as[EventInstance] match {
case Left(_) =>
logger.error("Failure parsing of EventInstance")
Left(BakerException.UnexpectedException("Failure parsing of EventInstance"))
logger.error("Failure decoding json to EventInstance")
Left(BakerException.UnexpectedException("Failure decoding json to EventInstance"))
case Right(eventInstance: EventInstance) =>
Right(eventInstance)
}
Expand Down

0 comments on commit d3307bc

Please sign in to comment.