From 6b1a79fab87ba5ad1ce2035f107a664803b46824 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 18 Mar 2018 16:27:34 -0700 Subject: [PATCH] update example --- examples/basics/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/basics/src/main.rs b/examples/basics/src/main.rs index 55e4485e..876131e2 100644 --- a/examples/basics/src/main.rs +++ b/examples/basics/src/main.rs @@ -124,7 +124,8 @@ fn main() { } })) .resource("/error.html", |r| r.f(|req| { - error::ErrorBadRequest(io::Error::new(io::ErrorKind::Other, "test")) + error::InternalError::new( + io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK) })) // static files .handler("/static/", fs::StaticFiles::new("../static/", true))