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
|
|
@ -32,11 +32,13 @@ func (rebuild) Description() wisski_distillery.Description {
|
|||
}
|
||||
|
||||
var errRebuildFailed = exit.Error{
|
||||
Message: "failed to run rebuild script for instance %q: exited with code %s",
|
||||
Message: "failed to run rebuild",
|
||||
ExitCode: exit.ExitGeneric,
|
||||
}
|
||||
|
||||
func (rb rebuild) Run(context wisski_distillery.Context) error {
|
||||
func (rb rebuild) Run(context wisski_distillery.Context) (err error) {
|
||||
defer errRebuildFailed.DeferWrap(&err)
|
||||
|
||||
dis := context.Environment
|
||||
|
||||
// find the instances
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue