diff --git a/guide/src/qs_4_5.md b/guide/src/qs_4_5.md index 5a11af733..18bf7ed68 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 }