From 553bbac36bdc483135a7053ca64507e01397e5e1 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 9 Sep 2024 23:03:49 +0200 Subject: add package manager recognition --- src/error.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/error.rs') 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 { #[error("invalid directory '{0}'")] InvalidDirectory(String), - #[error("Only exactly one user allowed in config")] - MultiUser, - #[error("Requested backup not found")] BackupNotFound, @@ -24,12 +21,21 @@ pub enum Error { #[error("Unknown Package Manger Output")] UnknownOutput, + #[error("Unsupported os/distro")] + Unsupported, + #[error("json: {source}")] SerdeJson { #[from] source: serde_json::Error, }, + #[error("toml serializer: {source}")] + TomlSerialize { + #[from] + source: toml::ser::Error, + }, + #[error("io: {source}")] Io { #[from] -- cgit v1.2.3