1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// lfs error type
#[derive(Debug, snafu::Snafu)]
#[snafu(visibility(pub(crate)))]
pub enum Error {

    #[snafu(display("Could not read file {path:?}"))]
    CantReadFile {
        source: std::io::Error,
        path: std::path::PathBuf,
    },

    #[snafu(display("Could not read dir {path:?}"))]
    CantReadDir {
        source: std::io::Error,
        path: std::path::PathBuf,
    },

    #[snafu(display("Could not parse mountinfo"))]
    ParseMountInfo {
        source: crate::ParseMountInfoError,
    },

    #[snafu(display("Unexpected format"))]
    UnexpectedFormat,
}