Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dumas committed Nov 10, 2023
1 parent 4d78299 commit 70e1838
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ch.epfl.bluebrain.nexus.storage.routes

import akka.http.scaladsl.model.headers.{`WWW-Authenticate`, HttpChallenges}
import akka.http.scaladsl.model.headers.{HttpChallenges, `WWW-Authenticate`}
import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.server.{ExceptionHandler, RejectionHandler, Route}
import cats.effect.IO
Expand All @@ -12,7 +12,7 @@ import ch.epfl.bluebrain.nexus.storage.config.AppConfig._
import ch.epfl.bluebrain.nexus.storage.routes.AuthDirectives._
import ch.epfl.bluebrain.nexus.storage.routes.PrefixDirectives._
import ch.epfl.bluebrain.nexus.storage.routes.instances._
import ch.epfl.bluebrain.nexus.storage.{AkkaSource, StorageError, Storages}
import ch.epfl.bluebrain.nexus.storage.{AkkaSource, Rejection, StorageError, Storages}

import scala.util.control.NonFatal

Expand Down Expand Up @@ -58,7 +58,7 @@ object Routes {
* a complete RejectionHandler for all library and code rejections
*/
final val rejectionHandler: RejectionHandler =
RejectionHandling.apply withFallback RejectionHandling.notFound withFallback RejectionHandler.default
RejectionHandling.apply { r: Rejection => r } withFallback RejectionHandling.notFound withFallback RejectionHandler.default

/**
* Wraps the provided route with rejection and exception handling.
Expand Down

0 comments on commit 70e1838

Please sign in to comment.