use custom_error::custom_error;
custom_error! {
pub Error
Notify{
source: notify::Error
} = "Notify error: {source}",
PathWatch{
path: String,
source: notify::Error
} = "Notify error watching {path}: {source}",
Pattern{
source: glob::PatternError
} = "Invalid glob: {source}",
Io{
source: std::io::Error
} = "Input / output error: {source}",
Receive{
source: crossbeam_channel::RecvError
} = "Channel receive error: {source}",
}