diff options
Diffstat (limited to 'askama_tide')
-rw-r--r-- | askama_tide/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_tide/src/lib.rs b/askama_tide/src/lib.rs index 0458348..59f90e9 100644 --- a/askama_tide/src/lib.rs +++ b/askama_tide/src/lib.rs @@ -23,9 +23,9 @@ pub fn into_response<T: Template>(t: &T, ext: &str) -> Response { response } - Err(e) => { + Err(error) => { let mut response = Response::new(500); - response.set_body(e.to_string()); + response.set_error(error); response } } |