From f55ff2492555a70bd7ee6e5ada7d2ea25bb3cfb7 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 20 Jan 2018 21:40:18 -0800 Subject: [PATCH] fix guide example --- guide/src/qs_4_5.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }