summaryrefslogtreecommitdiff
path: root/src/macro_processor/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macro_processor/error.rs')
-rw-r--r--src/macro_processor/error.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/macro_processor/error.rs b/src/macro_processor/error.rs
index 074a8ef..cd94c4d 100644
--- a/src/macro_processor/error.rs
+++ b/src/macro_processor/error.rs
@@ -5,6 +5,7 @@ use std::fmt;
pub enum SMPError {
IncludeError(u8, std::io::Error, String),
ShellCommandError(u8, Box<dyn Error>),
+ UnknownError(u8, Option<Box<dyn Error>>),
}
impl fmt::Display for SMPError {
@@ -16,6 +17,13 @@ impl fmt::Display for SMPError {
SMPError::ShellCommandError(code, e) => {
write!(f, "[SMP{}] Error running shell command \"{:#?}\"", code, e)
}
+ SMPError::UnknownError(code, e) => {
+ write!(
+ f,
+ "[SMP{}] Unknown macro processing error occurred \"{:#?}\"",
+ code, e
+ )
+ }
}
}
}