aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2018-02-22 11:26:46 -0800
committerZach Smith <zach@driver.xyz>2018-02-22 11:26:46 -0800
commit2059634d2fa2c28ddf2b992bc36ab3d96f3c2512 (patch)
tree0ae98459f1c3d28953922a0ab1170fa83fc5f85b
parenta499e0308cd1a9be29c21c4d453c8a7aa7fa25f1 (diff)
downloaddriver-core-2059634d2fa2c28ddf2b992bc36ab3d96f3c2512.tar.gz
driver-core-2059634d2fa2c28ddf2b992bc36ab3d96f3c2512.tar.bz2
driver-core-2059634d2fa2c28ddf2b992bc36ab3d96f3c2512.zip
Call .seal on RejectionHandler
-rw-r--r--src/main/scala/xyz/driver/core/rest/DriverRoute.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/scala/xyz/driver/core/rest/DriverRoute.scala b/src/main/scala/xyz/driver/core/rest/DriverRoute.scala
index 5e629be..58a4143 100644
--- a/src/main/scala/xyz/driver/core/rest/DriverRoute.scala
+++ b/src/main/scala/xyz/driver/core/rest/DriverRoute.scala
@@ -90,12 +90,11 @@ trait DriverRoute {
.handle {
case rejection =>
respondWithAllCorsHeaders {
- RejectionHandler
- .default(scala.collection.immutable.Seq(rejection))
- .getOrElse(complete("OK"))
+ RejectionHandler.default(collection.immutable.Seq(rejection)).get
}
}
.result()
+ .seal
/**
* Override me for custom exception handling