Remove `EnvironmentError` extraneous explanation
The previous EnvironmentError text was confusing, because it was not
clear what was meant by "Environment". This change removes the
extraneous explanation so the user receives a more succinct explanation
of the problem.
@@ -43,9 +43,7 @@ impl fmt::Display for CliError {
CliError::InvalidSubcommand => write!(f, "An invalid subcommand was specified"),
CliError::ClapError(err) => f.write_str(&err.message),
CliError::ActionError(msg) => write!(f, "Subcommand encountered an error: {}", msg),
- CliError::EnvironmentError(msg) => {
- write!(f, "Environment not valid for subcommand: {}", msg)
- }
+ CliError::EnvironmentError(msg) => f.write_str(msg),
}
}
}
