diff --git a/guide/src/qs_4_5.md b/guide/src/qs_4_5.md index 5a11af73..18bf7ed6 100644 --- a/guide/src/qs_4_5.md +++ b/guide/src/qs_4_5.md @@ -116,7 +116,8 @@ specific error response. We can use helper types for first example with custom e #[macro_use] extern crate failure; use actix_web::*; -#[derive(Debug)] +#[derive(Fail, Debug)] +#[fail(display="Error {}", name)] struct MyError { name: &'static str }