use miette::Diagnostic;
use std::path::PathBuf;
#[derive(Debug, thiserror::Error, Diagnostic)]
#[error("Failed to read `{}`", .path.display())]
#[diagnostic(help("Did you mistype the directory?"))]
pub struct ReadDir {
pub path: PathBuf,
#[source]
pub source: std::io::Error,
}
#[derive(Debug, thiserror::Error, Diagnostic)]
#[error("Failed to read `{}`", .path.display())]
#[diagnostic(help("Likely a permissions issue"))]
pub struct ReadPath {
pub path: PathBuf,
#[source]
pub source: std::io::Error,
}