diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/error.rs b/src/error.rs index e24c3b1..cb57e99 100644 --- a/src/error.rs +++ b/src/error.rs | |||
@@ -24,21 +24,13 @@ pub enum Error { | |||
24 | #[error("Unsupported os/distro")] | 24 | #[error("Unsupported os/distro")] |
25 | Unsupported, | 25 | Unsupported, |
26 | 26 | ||
27 | #[error("json: {source}")] | 27 | // Deps |
28 | SerdeJson { | 28 | #[error(transparent)] |
29 | #[from] | 29 | SerdeJson(#[from] serde_json::Error), |
30 | source: serde_json::Error, | 30 | |
31 | }, | 31 | #[error(transparent)] |
32 | 32 | TomlSerialize(#[from] toml::ser::Error), | |
33 | #[error("toml serializer: {source}")] | 33 | |
34 | TomlSerialize { | 34 | #[error(transparent)] |
35 | #[from] | 35 | Io(#[from] std::io::Error), |
36 | source: toml::ser::Error, | ||
37 | }, | ||
38 | |||
39 | #[error("io: {source}")] | ||
40 | Io { | ||
41 | #[from] | ||
42 | source: std::io::Error, | ||
43 | }, | ||
44 | } | 36 | } |