diff options
author | fxqnlr <[email protected]> | 2024-09-14 18:59:23 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-14 18:59:23 +0200 |
commit | 0ed94b3f011a2d3c22bdc4affb502720be22c371 (patch) | |
tree | 9fb2cdbdccfa8c9cf5d9b8d3ccc48443fe6706a6 /src/error.rs | |
parent | 1b99a4a1ed7772c9b68e59f46e493ea5b4715239 (diff) | |
download | arbs-0ed94b3f011a2d3c22bdc4affb502720be22c371.tar arbs-0ed94b3f011a2d3c22bdc4affb502720be22c371.tar.gz arbs-0ed94b3f011a2d3c22bdc4affb502720be22c371.zip |
add restoration of files and packages
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 | } |