Skip to content

Commit

Permalink
use in.decodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitlouy committed Aug 13, 2024
1 parent 6962e61 commit ac62ec9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ private[smithy4s] class SchemaVisitorJCodec(
docDecoder
.decode(Document.obj())
.getOrElse(
throw new RuntimeException(
in.decodeError(
s"${cursor.getPath(Nil)} Failed translating a Document.DObject to the type targeted by ${f.label}."
)
)
Expand All @@ -1529,7 +1529,7 @@ private[smithy4s] class SchemaVisitorJCodec(
docDecoder
.decode(unknownValue)
.getOrElse(
throw new RuntimeException(
in.decodeError(
s"${cursor.getPath(Nil)} Failed translating a Document.DObject to the type targeted by ${f.label}."
)
)
Expand Down

0 comments on commit ac62ec9

Please sign in to comment.