Skip to main content

katana_markdown_engine/
error.rs

1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum KmeError {
6    #[error("failed to read Markdown file `{path}`: {source}")]
7    ReadFile {
8        path: PathBuf,
9        source: std::io::Error,
10    },
11    #[error("Markdown source is empty")]
12    EmptySource,
13}