Replies: 1 comment
-
It's not currently possible and would require a breaking change; worth opening an issue imo. There's some limited ways to do it for app data using For now you just have to do all the fallible stuff before |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use functions to build the
App
likeHowever there is quite a bit of logic in these functions, with lots of bits that can fail, and we'd like to have structured errors for those, so something like
Is this possible already somehow? If not, is it feasible to add?
The
InitError
there is very curious...The way we work around this atm is the have a
fn setup_data(..) -> Result<AppData, ..>
and afn build_app(app_data: AppData) -> App<impl ServiceFactory<..>> { }
and then join them usingBeta Was this translation helpful? Give feedback.
All reactions