better render error text for the Wender body
This commit is contained in:
parent
1aa2d48869
commit
2e09d0b8e9
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ impl Wender for askama::Result<String> {
|
|||
fn wender(self) -> Response {
|
||||
let b = self.unwrap_or_else(|e| {
|
||||
tracing::error!("got error rendering template: {e}");
|
||||
"".to_string()
|
||||
"could not render template".to_string()
|
||||
});
|
||||
Body::new(b).into_response()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue