Made MTTError a proper Error structure.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-12 22:49:19 -05:00
parent 7ff9ca340f
commit a9b87200ef
12 changed files with 156 additions and 164 deletions

View File

@@ -249,7 +249,7 @@ mod queues {
use super::*;
use crate::{
action::MsgAction,
mtterror::MTTError,
mtterror::{ErrorID, MTTError},
name::Name,
queue::data_director::{Include, Path},
support_tests::TIMEOUT,
@@ -321,8 +321,8 @@ mod queues {
MsgAction::Register(data) => {
let regmsg = data.get_msg();
match data.get_msg() {
RegMsg::Error(err) => match err {
MTTError::NameNotFound(failed_name) => assert_eq!(failed_name, &name),
RegMsg::Error(err) => match err.error_id() {
ErrorID::NameNotFound => {}
_ => unreachable!("got {:?} should have been missing name", err),
},
_ => unreachable!("got {:?} should have been error", regmsg),