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
|
|
@ -28,7 +28,7 @@ func (pv) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errProvisionGeneric = exit.Error{
|
||||
Message: "unable to provision instance %s: %s",
|
||||
Message: "unable to provision instance %s",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ func (p pv) Run(context wisski_distillery.Context) error {
|
|||
Slug: p.Positionals.Slug,
|
||||
})
|
||||
if err != nil {
|
||||
return errProvisionGeneric.WithMessageF(p.Positionals.Slug, err)
|
||||
return errProvisionGeneric.WithMessageF(p.Positionals.Slug).Wrap(err)
|
||||
}
|
||||
|
||||
// and we're done!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue