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

Error handling on Mutation #47

Closed
fgadaleta opened this issue Jan 7, 2022 · 1 comment
Closed

Error handling on Mutation #47

fgadaleta opened this issue Jan 7, 2022 · 1 comment

Comments

@fgadaleta
Copy link

Running this example about error handling on mutation

actix-web/error-extensions/src/main.rs

I get

error: cannot find derive macro `Error` in this scope
   | #[derive(Debug, Error)]
   |                 ^^^^^

How am I supposed to use Error with
actix-web = { version = "4.0.0-beta.13", default-features = false } ?

@sunli829
Copy link
Collaborator

sunli829 commented Jan 8, 2022

This macro is from the thiserror crate.

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

2 participants