Skip to content

Commit

Permalink
Update other readme configs to be more accurate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmay committed Sep 28, 2018
1 parent 41f2953 commit 4f184c2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ import play.api.{ApplicationLoader, BuiltInComponentsFromContext}
import play.api.http.HttpErrorConfig

class MyModuleFromContext(context: ApplicationLoader.Context) extends BuiltInComponentsFromContext(context) {

lazy val httpErrorConfig: HttpErrorConfig = HttpErrorConfig(
environment.mode != Mode.Prod,
configuration.getOptional[String]("play.editor")
)


lazy val httpErrorConfig: JsonHttpErrorConfig = JsonHttpErrorConfig.fromEnvironment(environment)

override lazy val httpErrorHandler: HttpErrorHandler = new PlayJsonHttpErrorHandler(
router,
httpErrorConfig,
sourceMapper
)

// ... other required components
}
```
Expand Down

0 comments on commit 4f184c2

Please sign in to comment.