Skip to content

Commit

Permalink
Update Izumi to 1.2.7. (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caparow authored Mar 19, 2024
1 parent c86841d commit 0f19df5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ class HttpRpcDispatcher[F[+_, +_]: IO2](
logger
.info(s"$method: decoder failed on $body: $f $trace")
.as(new IRTUnparseableDataException(s"$method: decoder failed on body=$body: f=$f trace=$trace", Option(f)))

case Exit.Interruption(error, _, trace) =>
logger
.info(s"$method: decoder interrupted on $body: $error $trace")
.as(new IRTUnparseableDataException(s"$method: decoder interrupted on body=$body: error=$error trace=$trace", Option(error)))
}
} yield res
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ abstract class WsRpcHandler[F[+_, +_]: IO2, RequestCtx](
logger
.error(s"WS Request unexpectedly failed:\n$exception\n$trace")
.as(Some(onFail(exception.getMessage)))

case Exit.Interruption(exception, allExceptions, trace) =>
logger
.error(s"WS Request unexpectedly interrupted:\n$exception\n$allExceptions\n$trace")
.as(Some(onFail(exception.getMessage)))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ object IRTServerMethod {
val methodId = method.signature.id
for {
requestBody <- F.syncThrowable(method.marshaller.decodeRequest[F].apply(IRTJsonBody(methodId, parsedBody))).flatten.sandbox.catchAll {
case Exit.Interruption(decodingFailure, _, trace) =>
F.fail(new IRTDecodingException(s"$methodId: Failed to decode JSON '${parsedBody.noSpaces}'.\nTrace: $trace", Some(decodingFailure)))
case Exit.Termination(_, exceptions, trace) =>
F.fail(new IRTDecodingException(s"$methodId: Failed to decode JSON '${parsedBody.noSpaces}'.\nTrace: $trace", exceptions.headOption))
case Exit.Error(decodingFailure, trace) =>
Expand Down
2 changes: 1 addition & 1 deletion project/project/PluginVersions.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object PV {
val izumi = "1.2.6"
val izumi = "1.2.7"

val sbt_scoverage = "2.0.11"
val sbt_pgp = "2.2.1"
Expand Down

0 comments on commit 0f19df5

Please sign in to comment.