Commit 548d11b6 authored by Alexandre Pere's avatar Alexandre Pere

Adds new error type

parent 815fe79b
...@@ -57,6 +57,7 @@ pub enum Exit { ...@@ -57,6 +57,7 @@ pub enum Exit {
SchedulerCrashed, SchedulerCrashed,
SchedulerShutdown, SchedulerShutdown,
InstallCompletion, InstallCompletion,
PostScriptPath,
} }
impl std::fmt::Display for Exit { impl std::fmt::Display for Exit {
...@@ -113,7 +114,8 @@ impl std::fmt::Display for Exit { ...@@ -113,7 +114,8 @@ impl std::fmt::Display for Exit {
Exit::RecordFeatures => write!(f, "failed to record features"), Exit::RecordFeatures => write!(f, "failed to record features"),
Exit::SchedulerCrashed => write!(f, "scheduler crashed"), Exit::SchedulerCrashed => write!(f, "scheduler crashed"),
Exit::SchedulerShutdown => write!(f, "scheduler was shutdown"), Exit::SchedulerShutdown => write!(f, "scheduler was shutdown"),
Exit::InstallCompletion => write!(f, "failed to install completion") Exit::InstallCompletion => write!(f, "failed to install completion"),
Exit::PostScriptPath => write!(f, "failed to load post script"),
} }
} }
} }
...@@ -170,6 +172,7 @@ impl From<Exit> for i32 { ...@@ -170,6 +172,7 @@ impl From<Exit> for i32 {
Exit::SchedulerCrashed => 9946, Exit::SchedulerCrashed => 9946,
Exit::SchedulerShutdown => 9947, Exit::SchedulerShutdown => 9947,
Exit::InstallCompletion => 9948, Exit::InstallCompletion => 9948,
Exit::PostScriptPath => 9949,
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment