codefold_core/error.rs
1use std::path::PathBuf;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum Error {
6 #[error("io error reading {path}: {source}")]
7 Io {
8 path: PathBuf,
9 #[source]
10 source: std::io::Error,
11 },
12
13 #[error("unsupported language for extension {0:?}")]
14 UnsupportedLanguage(String),
15
16 #[error("parse failed for {path}")]
17 Parse { path: PathBuf },
18}