summaryrefslogtreecommitdiff
path: root/src/macro_processor/error.rs
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-09-26 00:11:05 +0200
committerQrius <[email protected]>2024-09-26 00:11:05 +0200
commit40c4bb30c16f52fd9ec4944482dbbb929386ab78 (patch)
treecaaae9b3380f0fd81b2ef8d1cfbaa747488729fb /src/macro_processor/error.rs
parent6af9f573fce9c167487e10c7327feff357327d6a (diff)
downloadskaldpress-40c4bb30c16f52fd9ec4944482dbbb929386ab78.tar.gz
skaldpress-40c4bb30c16f52fd9ec4944482dbbb929386ab78.zip
Fix a bunch of things, add diferent syntax for strings
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 cd94c4d..7661156 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>),
+ MarkdownError(u8, markdown::message::Message),
UnknownError(u8, Option<Box<dyn Error>>),
}
@@ -17,6 +18,13 @@ impl fmt::Display for SMPError {
SMPError::ShellCommandError(code, e) => {
write!(f, "[SMP{}] Error running shell command \"{:#?}\"", code, e)
}
+ SMPError::MarkdownError(code, message) => {
+ write!(
+ f,
+ "[SMP{}] Error converting markdown \"{:#?}\"",
+ code, message
+ )
+ }
SMPError::UnknownError(code, e) => {
write!(
f,