feat(error): add error for unknown lesson type

This commit is contained in:
2025-10-10 01:30:30 +04:00
parent 7bac48f8fc
commit 7ed866138e
2 changed files with 16 additions and 4 deletions

View File

@@ -17,6 +17,9 @@ pub enum Error {
#[display("No start and end times matching the lesson (at {_0}) was found.")]
LessonTimeNotFound(CellPos),
#[display("Unknown lesson type `{type}` at {pos}")]
UnknownLessonType { pos: CellPos, r#type: String },
}
pub type Result<T> = core::result::Result<T, Error>;