Migrate to actix-web #8
|
@ -1,3 +1,4 @@
|
|||
use log::error;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::errors::UserError;
|
||||
|
@ -12,6 +13,7 @@ pub fn render_template(
|
|||
.render(name, args)
|
||||
.map_err(|_| UserError::InternalError)?)
|
||||
} else {
|
||||
error!("template not found: {}", name);
|
||||
Err(UserError::NotFound)?
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue