From fce39a1c9a44d4a7eb2234f5d15b86d1c3177ffa Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Do a bunch of QOL things, add some skaldpress specific macros, add second run, etc --- src/macro_processor/error.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/macro_processor/error.rs') 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), + UnknownError(u8, Option>), } 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 + ) + } } } } -- cgit v1.2.3