Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PERE Alexandre
orchestra
Commits
548d11b6
Commit
548d11b6
authored
Dec 11, 2019
by
Alexandre Pere
Browse files
Adds new error type
parent
815fe79b
Changes
1
Hide whitespace changes
Inline
Side-by-side
runaway-cli/src/exit.rs
View file @
548d11b6
...
...
@@ -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<Exit> for i32 {
Exit
::
SchedulerCrashed
=>
9946
,
Exit
::
SchedulerShutdown
=>
9947
,
Exit
::
InstallCompletion
=>
9948
,
Exit
::
PostScriptPath
=>
9949
,
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment