Template rendering errors during web page rendering were previously
handled by Rocket. We are going to have to deal with them ourselves.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
// There is NO WARRANTY.
use crate::prelude::*;
+use tera_standalone as tera;
#[derive(Error,Debug)]
pub enum Fatal { // Includes _bogus_ client updates, see PROTOCOL.md
Aggregated,
#[error("{0}")]
SshKeysManipError(#[from] sshkeys::AuthKeysManipError),
+ #[error("Template rendering error")]
+ TemplateRenderingError(#[from] tera::Error),
}
#[derive(Error,Copy,Clone,Debug,Serialize,Deserialize)]