mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
17 lines
352 B
Rust
17 lines
352 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Error {
|
|
#[error("missing front-matter field: id")]
|
|
MissingID,
|
|
|
|
#[error("invalid file id: {}", msg)]
|
|
InvalidID { msg: String },
|
|
|
|
#[error("invalid front-matter: {}", msg)]
|
|
InvalidFrontMatter { msg: String },
|
|
|
|
#[error("fs error: {}", msg)]
|
|
FSError { msg: String },
|
|
}
|