1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

use thiserror::Error;

pub use anyhow::{anyhow, bail, ensure, Context as _, Result, Error};

#[derive(Error, Debug)]
pub enum ErrorNotify {
    #[error("Could not watch files for changes")]
    Notify(#[from] notify::Error),

    #[error("Could not watch file for changes: '{path}'")]
    NotifyPath {
        path: PathBuf,
        source: notify::Error,
    },
}