async-graphql / examples

217 stars 54 forks source link

Error handling on Mutation #47

Closed fgadaleta closed 2 years ago

fgadaleta commented 2 years ago

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 commented 2 years ago

This macro is from the thiserror crate.