From 9e5b0a2cdd8e48c9f3303d8b8e26e61c27e09d22 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Wed, 8 Oct 2025 17:33:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(error):=20improve=20error=20?= =?UTF-8?q?message=20for=20missing=20labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - enhance error message for `LabelNotFoundInRules` to include the missing label --- src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index bbba4ae..7a291ea 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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)),