From 3628f6a291501be66199f86f1ed22560e3fbd81d Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 9 Oct 2025 08:13:35 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(error):=20add=20RuleNotFound?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add new error type for when a rule is not found by ID --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/error.rs b/src/error.rs index 7a291ea..26edba4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,6 +18,9 @@ pub enum Error { /// No rule for label #[error("No rule for label {0}")] NoRuleFoundForLabel(String), + /// Rule not found for ID + #[error("No rule for id {0}")] + RuleNotFound(usize), /// Label not found in the rule set #[error("Label `{0}` not found in the rule set")] LabelNotFoundInRules(String),