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

@@ -92,7 +92,7 @@ mod sessions {
field::Field,
},
message::wrapper::Records,
mtterror::MTTError,
mtterror::{ErrorID, MTTError},
name::{Name, NameType, Names},
queue::data_director::{Include, Path, RegMsg, Register},
support_tests::TIMEOUT,
@@ -246,8 +246,8 @@ mod sessions {
let result = setup.recv().unwrap();
let action = result.get_action();
match action {
MsgAction::Error(err) => match err {
MTTError::FieldDuplicate => {}
MsgAction::Error(err) => match err.error_id() {
ErrorID::IndexEntryAlreadyExists => {}
_ => unreachable!("got {:?}, should have been a field duplicate", err),
},
_ => unreachable!("got {:?}, should have been an error", action),