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
27
28
29
30
31
32
33
34
35
36
37
use ;
use Diagnostic;
use Error;
/// A helper return type for functions that return `Result<T, DotbakError>`.
pub type Result<T> = Result;
/// The main error type for the program itself. This encapsulates all other errors, such as IO errors,
/// configuration errors, git errors, etc.
// /* Convenience implementations for converting boxed errors into dotbak errors. */
// /// Convert `IoError` into a `DotbakError`
// impl From<IoError> for DotbakError {
// fn from(err: IoError) -> Self {
// Self::Io { source: err }
// }
// }
// /// Convert `ConfigError` into a `DotbakError`
// impl From<ConfigError> for DotbakError {
// fn from(err: ConfigError) -> Self {
// Self::Config { source: err }
// }
// }