use thiserror::Error;
pub type Result<T, E = SnapFireError> = std::result::Result<T, E>;
#[derive(Debug, Error)]
pub enum SnapFireError {
#[error("Tera rendering error: {0}")]
Tera(#[from] tera::Error),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Context serialization error: {0}")]
Serialization(String),
#[cfg(feature = "devel")]
#[error("File watcher error: {0}")]
Watcher(#[from] notify::Error),
}