better render error text for the Wender body

This commit is contained in:
Joe Ardent 2025-08-30 15:38:01 -07:00
parent 1aa2d48869
commit 2e09d0b8e9

View file

@ -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()
}