-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove route builder #3115
Remove route builder #3115
Conversation
8bf9ae7
to
f064483
Compare
@987Nabil You referenced the wrong ticket? |
I removed the route builder, since it is not needed anymore. Also I enabled Env access for the zio effects that handle errors on |
@jdegoes it fixes both |
@@ -53,7 +53,9 @@ sealed trait Route[-Env, +Err] { self => | |||
final def handleError(f: Err => Response)(implicit trace: Trace): Route[Env, Nothing] = | |||
self.handleErrorCauseZIO(c => ErrorResponseConfig.configRef.get.map(Response.fromCauseWith(c, _)(f))) | |||
|
|||
final def handleErrorZIO(f: Err => ZIO[Any, Nothing, Response])(implicit trace: Trace): Route[Env, Nothing] = | |||
final def handleErrorZIO[Env1 <: Env]( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Env access
final def handleErrorCauseZIO( | ||
f: Cause[Err] => ZIO[Any, Nothing, Response], | ||
)(implicit trace: Trace): Route[Env, Nothing] = | ||
final def handleErrorCauseZIO[Env1 <: Env]( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env access
fixes #2870
/claim #2870