mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 10:58:21 +00:00
Add Apply Error
This commit is contained in:
parent
ecd71fc6a7
commit
163c097d2d
2 changed files with 12 additions and 0 deletions
9
src/apply/mod.rs
Normal file
9
src/apply/mod.rs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
use thiserror::Error;
|
||||||
|
|
||||||
|
pub mod networkd;
|
||||||
|
|
||||||
|
#[derive(Error, Debug)]
|
||||||
|
pub enum ApplyError {
|
||||||
|
#[error("Template Error")]
|
||||||
|
TemplateError(#[from] tera::Error),
|
||||||
|
}
|
|
@ -23,6 +23,9 @@ pub enum ConfigError {
|
||||||
#[error("Unsupported config version")]
|
#[error("Unsupported config version")]
|
||||||
UnsupportedVersionError,
|
UnsupportedVersionError,
|
||||||
|
|
||||||
|
#[error("Apply Error")]
|
||||||
|
ApplyError(#[from] super::apply::ApplyError),
|
||||||
|
|
||||||
/// Represents all other cases of `std::io::Error`.
|
/// Represents all other cases of `std::io::Error`.
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
IOError(#[from] std::io::Error),
|
IOError(#[from] std::io::Error),
|
||||||
|
|
Loading…
Add table
Reference in a new issue