🐛 fix(error): improve error message for missing labels
- enhance error message for `LabelNotFoundInRules` to include the missing label
This commit is contained in:
committed by
Jeremiah Russell
parent
3b224f100e
commit
9e5b0a2cdd
@@ -19,8 +19,8 @@ pub enum Error {
|
|||||||
#[error("No rule for label {0}")]
|
#[error("No rule for label {0}")]
|
||||||
NoRuleFoundForLabel(String),
|
NoRuleFoundForLabel(String),
|
||||||
/// Label not found in the rule set
|
/// Label not found in the rule set
|
||||||
#[error("Label not found in the rule set")]
|
#[error("Label `{0}` not found in the rule set")]
|
||||||
LabelNotFoundInRules,
|
LabelNotFoundInRules(String),
|
||||||
/// Directory creation failed for `{0}`
|
/// Directory creation failed for `{0}`
|
||||||
#[error("Directory creation failed for `{0:?}`")]
|
#[error("Directory creation failed for `{0:?}`")]
|
||||||
DirectoryCreationFailed((String, Box<std::io::Error>)),
|
DirectoryCreationFailed((String, Box<std::io::Error>)),
|
||||||
|
|||||||
Reference in New Issue
Block a user