script: Add message to HierarchyRequestError (#40366)

Adds an optional error message to HierarchyRequestError

Testing: refactor
Fixes: one item in #39053

---------

Signed-off-by: Austin Willis <austinwillis8@gmail.com>
This commit is contained in:
austinwillis
2025-11-12 02:34:47 -05:00
committed by GitHub
parent 65deada7ef
commit 5896cfd936
8 changed files with 47 additions and 40 deletions

View File

@@ -38,7 +38,7 @@ impl Convert<Error> for RulesMutateError {
match self {
RulesMutateError::Syntax => Error::Syntax(None),
RulesMutateError::IndexSize => Error::IndexSize(None),
RulesMutateError::HierarchyRequest => Error::HierarchyRequest,
RulesMutateError::HierarchyRequest => Error::HierarchyRequest(None),
RulesMutateError::InvalidState => Error::InvalidState(None),
}
}