Better Vagrant error handling

This commit is contained in:
Roey Darwish Dror
2020-06-25 08:37:29 +03:00
parent 124b3f2506
commit 4fff6ba56f
3 changed files with 12 additions and 4 deletions

View File

@@ -6,6 +6,9 @@ pub enum TopgradeError {
#[error("{0}")]
ProcessFailed(ExitStatus),
#[error("{0}: {1}")]
ProcessFailedWithOutput(ExitStatus, String),
#[error("Sudo is required for this step")]
#[allow(dead_code)]
SudoRequired,