Don't panic when cannot detect the arch package manager (fix #818)

This commit is contained in:
Roey Darwish Dror
2022-01-06 06:27:37 +02:00
parent fb0d726703
commit ff9072f7b1
2 changed files with 14 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
use std::process::ExitStatus;
use thiserror::Error;
#[derive(Error, Debug, PartialEq)]
@@ -16,6 +17,10 @@ pub enum TopgradeError {
#[error("Unknown Linux Distribution")]
#[cfg(target_os = "linux")]
UnknownLinuxDistribution,
#[error("Failed getting the system package manager")]
#[cfg(target_os = "linux")]
FailedGettingPackageManager,
}
#[derive(Error, Debug)]