clankerdiff_watch/error.rs
1use crate::file_watcher::FileWatchError;
2use clankerdiff_git::GitError;
3
4/// A failure while starting, watching, or loading for a [`crate::RepositoryWatcher`].
5#[derive(Debug, thiserror::Error)]
6pub enum WatchError {
7 #[error(transparent)]
8 Git(#[from] GitError),
9 /// The platform watcher could not be created or could not observe a path.
10 #[error(transparent)]
11 FileWatch(#[from] FileWatchError),
12 /// The watcher task is no longer running.
13 #[error("the repository watcher has stopped")]
14 Stopped,
15}