🐛 fix(error): improve error message for missing labels

- enhance error message for `LabelNotFoundInRules` to include the missing label
This commit is contained in:
Jeremiah Russell
2025-10-08 17:33:34 +01:00
committed by Jeremiah Russell
parent 3b224f100e
commit 9e5b0a2cdd

View File

@@ -19,8 +19,8 @@ pub enum Error {
#[error("No rule for label {0}")]
NoRuleFoundForLabel(String),
/// Label not found in the rule set
#[error("Label not found in the rule set")]
LabelNotFoundInRules,
#[error("Label `{0}` not found in the rule set")]
LabelNotFoundInRules(String),
/// Directory creation failed for `{0}`
#[error("Directory creation failed for `{0:?}`")]
DirectoryCreationFailed((String, Box<std::io::Error>)),