use thiserror::Error;
#[derive(Error, Debug)]
pub enum XorcistError {
#[error("not in a jj repository (or any parent directory)")]
NotInRepo,
#[error("jj command not found in PATH")]
JjNotFound,
#[error("jj command failed: {0}")]
JjError(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("invalid UTF-8 in jj output")]
InvalidUtf8,
}