summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs
index 0cf4dca..e24c3b1 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -14,9 +14,6 @@ pub enum Error {
14 #[error("invalid directory '{0}'")] 14 #[error("invalid directory '{0}'")]
15 InvalidDirectory(String), 15 InvalidDirectory(String),
16 16
17 #[error("Only exactly one user allowed in config")]
18 MultiUser,
19
20 #[error("Requested backup not found")] 17 #[error("Requested backup not found")]
21 BackupNotFound, 18 BackupNotFound,
22 19
@@ -24,12 +21,21 @@ pub enum Error {
24 #[error("Unknown Package Manger Output")] 21 #[error("Unknown Package Manger Output")]
25 UnknownOutput, 22 UnknownOutput,
26 23
24 #[error("Unsupported os/distro")]
25 Unsupported,
26
27 #[error("json: {source}")] 27 #[error("json: {source}")]
28 SerdeJson { 28 SerdeJson {
29 #[from] 29 #[from]
30 source: serde_json::Error, 30 source: serde_json::Error,
31 }, 31 },
32 32
33 #[error("toml serializer: {source}")]
34 TomlSerialize {
35 #[from]
36 source: toml::ser::Error,
37 },
38
33 #[error("io: {source}")] 39 #[error("io: {source}")]
34 Io { 40 Io {
35 #[from] 41 #[from]