diff --git a/examples/basics/src/main.rs b/examples/basics/src/main.rs index 55e4485e0..876131e2c 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))