Skip to content

Commit 445d792

Browse files
committed
Make it build with scala 3
1 parent 05362d4 commit 445d792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playJson/shared/src/main/scala/diffson/playJson/DiffsonProtocol.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ object DiffsonProtocol {
3232

3333
private def errorToException(error: JsError): Exception =
3434
JsError.toFlatForm(error) match {
35-
case Seq((_, Seq(e, _*)), _*) => PatchException(e.message)
36-
case _ => PatchException("Empty json error")
35+
case Seq((_, Seq(e: JsonValidationError, _*)), _*) => PatchException(e.message)
36+
case _ => PatchException("Empty json error")
3737
}
3838

3939
implicit object JsResultInstances extends MonadError[JsResult, Throwable] {

0 commit comments

Comments
 (0)