Migrate to actix-web #8

Manually merged
tlater merged 14 commits from tlater/actix-web into master 2022-09-16 17:44:53 +01:00
Showing only changes of commit f0f799a693 - Show all commits

View file

@ -1,3 +1,4 @@
use log::error;
use serde::Serialize; use serde::Serialize;
use crate::errors::UserError; use crate::errors::UserError;
@ -12,6 +13,7 @@ pub fn render_template(
.render(name, args) .render(name, args)
.map_err(|_| UserError::InternalError)?) .map_err(|_| UserError::InternalError)?)
} else { } else {
error!("template not found: {}", name);
Err(UserError::NotFound)? Err(UserError::NotFound)?
} }
} }