🚚 Better name for response page errors

This commit is contained in:
Manuel Cillero 2023-11-25 08:59:51 +01:00
parent 68ed0f78b9
commit 09cb6bd7fa
12 changed files with 36 additions and 36 deletions

View file

@ -13,7 +13,7 @@ impl ModuleTrait for HelloName {
async fn hello_name(
request: service::HttpRequest,
path: service::web::Path<String>,
) -> ResultPage<Markup, FatalError> {
) -> ResultPage<Markup, ErrorPage> {
let name = path.into_inner();
Page::new(request)
.with_component_in("content", Html::with(html! { h1 { "Hello " (name) "!" } }))

View file

@ -9,7 +9,7 @@ impl ModuleTrait for HelloWorld {
}
}
async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, FatalError> {
async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(request)
.with_component_in("content", Html::with(html! { h1 { "Hello World!" } }))
.render()