Error handling refactor and 500 page/message templates
This commit is contained in:
@@ -7,3 +7,7 @@ pub enum MessageTemplate {
|
||||
#[template(path = "../templates/error.html")]
|
||||
Error { message: String },
|
||||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "../templates/500.html")]
|
||||
pub struct InternalErrorTemplate;
|
||||
|
||||
Reference in New Issue
Block a user