Made MTTError a proper Error structure.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user