diff --git a/src/apply/mod.rs b/src/apply/mod.rs new file mode 100644 index 0000000..8e9bb8b --- /dev/null +++ b/src/apply/mod.rs @@ -0,0 +1,9 @@ +use thiserror::Error; + +pub mod networkd; + +#[derive(Error, Debug)] +pub enum ApplyError { + #[error("Template Error")] + TemplateError(#[from] tera::Error), +} diff --git a/src/config_manager.rs b/src/config_manager.rs index b8c8e7e..cb1a834 100644 --- a/src/config_manager.rs +++ b/src/config_manager.rs @@ -23,6 +23,9 @@ pub enum ConfigError { #[error("Unsupported config version")] UnsupportedVersionError, + #[error("Apply Error")] + ApplyError(#[from] super::apply::ApplyError), + /// Represents all other cases of `std::io::Error`. #[error(transparent)] IOError(#[from] std::io::Error),