Rework error messages
This commit reworks error messages for all commands and makes sure they pass liniting.
This commit is contained in:
parent
d22784e6f5
commit
c31c46ee44
40 changed files with 249 additions and 110 deletions
|
|
@ -36,11 +36,13 @@ var errReserveAlreadyExists = exit.Error{
|
|||
}
|
||||
|
||||
var errReserveGeneric = exit.Error{
|
||||
Message: "unable to provision instance %s: %s",
|
||||
Message: "unable to provision instance",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
func (r reserve) Run(context wisski_distillery.Context) error {
|
||||
func (r reserve) Run(context wisski_distillery.Context) (err error) {
|
||||
defer errReserveGeneric.DeferWrap(&err)
|
||||
|
||||
dis := context.Environment
|
||||
slug := r.Positionals.Slug
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue