From 548d11b689f2c9bd274fa268d6ebc6b383272f22 Mon Sep 17 00:00:00 2001 From: Alexandre Pere Date: Wed, 11 Dec 2019 09:56:05 +0100 Subject: [PATCH] Adds new error type --- runaway-cli/src/exit.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runaway-cli/src/exit.rs b/runaway-cli/src/exit.rs index 4f2a67f..7235631 100644 --- a/runaway-cli/src/exit.rs +++ b/runaway-cli/src/exit.rs @@ -57,6 +57,7 @@ pub enum Exit { SchedulerCrashed, SchedulerShutdown, InstallCompletion, + PostScriptPath, } 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::SchedulerCrashed => write!(f, "scheduler crashed"), 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 for i32 { Exit::SchedulerCrashed => 9946, Exit::SchedulerShutdown => 9947, Exit::InstallCompletion => 9948, + Exit::PostScriptPath => 9949, } } } -- GitLab