Skip to content
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

Improve From<ErrorKind> for Error #1583

Open
data-sync-user opened this issue Jul 3, 2024 · 0 comments
Open

Improve From<ErrorKind> for Error #1583

data-sync-user opened this issue Jul 3, 2024 · 0 comments

Comments

@data-sync-user
Copy link
Collaborator

(From the original https://github.com/mozilla-services/syncstorage-rs/issues/932 )

Mark's reflexive From for Error types in autoendpoint may make it easier to convert from lower level errors (like DbErrorKind) directly into higher level ApiErrors.

We may want to make failure_boilerplate!from_error! implement it for all types or only emit it for the higher level ApiError -- we can look at what autoendpoint does here as an example.

┆Issue is synchronized with this Jira Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant