Last active
December 17, 2015 17:09
-
-
Save jto/5644315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val eventuallyResult = eventuallyResultIteratee.flatMap(it => it.run)(internalExecutionContext) | |
val sent = eventuallyResult.recover { | |
case error => | |
Play.logger.error("Cannot invoke the action, eventually got an error: " + error) | |
e.getChannel.setReadable(true) | |
app.map(_.handleError(requestHeader, error)).getOrElse(DefaultGlobal.onError(requestHeader, error)) | |
}(internalExecutionContext).flatMap { result => | |
NettyResultStreamer.sendResult(cleanFlashCookie(result), !keepAlive, nettyVersion) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment