Skip to content

Instantly share code, notes, and snippets.

@jto
Last active December 17, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jto/5644133 to your computer and use it in GitHub Desktop.
Save jto/5644133 to your computer and use it in GitHub Desktop.
case Right((action: EssentialAction, app)) =>
val a = EssentialAction { rh =>
Iteratee.flatten(action(rh).unflatten.map(_.it)(internalExecutionContext).recover {
case error => Done(app.handleError(requestHeader, error),Input.Empty): Iteratee[Array[Byte],SimpleResult]
}(internalExecutionContext))
}
handleAction(a, Some(app))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment