use clankerdiff_git::GitError;
use std::path::PathBuf;
#[derive(Debug, thiserror::Error)]
pub enum WatchError {
#[error(transparent)]
Git(#[from] GitError),
#[error("could not watch {path}")]
Watch {
path: PathBuf,
#[source]
source: notify::Error,
},
#[error("the repository watcher has stopped")]
Stopped,
}