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

@@ -18,7 +18,7 @@ use queue::{
use std::sync::mpsc::{channel, Receiver};
use uuid::Uuid;
pub use mtterror::MTTError;
pub use mtterror::{ErrorID, MTTError};
pub use name::{Name, NameType};
#[cfg(test)]
@@ -118,7 +118,7 @@ impl MoreThanText {
if name == "page" {
Ok("something".to_string())
} else {
Err(MTTError::DocumentNotFound(name.to_string()))
Err(MTTError::new(NameType::None, ErrorID::DocumentNotFound))
}
}
}