summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-09 23:03:49 +0200
committerfxqnlr <[email protected]>2024-09-09 23:03:49 +0200
commit553bbac36bdc483135a7053ca64507e01397e5e1 (patch)
tree494dad0623628df4f1b86b93da51edf60795a901 /src/error.rs
parentd396881816cd256cb12d03deebea445cba99ea85 (diff)
downloadarbs-553bbac36bdc483135a7053ca64507e01397e5e1.tar
arbs-553bbac36bdc483135a7053ca64507e01397e5e1.tar.gz
arbs-553bbac36bdc483135a7053ca64507e01397e5e1.zip
add package manager recognition
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]