Skip to content

Better error handling story #168

@remexre

Description

@remexre

Right now, I'm handling errors in an (HTMLful) warp app with the following helper:

https://github.com/remexre/nihctfplat/blob/e10ef2befe1bfa07373096b511e81e35284d708e/src/router/util.rs#L56-L96

I'm naturally not thrilled about this; #165 is largely about mitigating the need for the .map(Ok).recover(|e| Ok(Err(e))).unify().and(auth::opt_auth()); is there a nicer way to do something like this that I'm not seeing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions