Phrase errors in Execute the same as in Prepare [#33]
This commit is contained in:
parent
d86ac72529
commit
cb58b5a021
|
@ -85,7 +85,7 @@ func (p *Plan) Execute() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := step.Execute(p.runCfg); err != nil {
|
if err := step.Execute(p.runCfg); err != nil {
|
||||||
return fmt.Errorf("in execution step %d: %w", i, err)
|
return fmt.Errorf("while executing %T step: %w", step, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ func (suite *PlanTestSuite) TestExecuteAbortsOnError() {
|
||||||
Return(fmt.Errorf("oh, he'll gnaw"))
|
Return(fmt.Errorf("oh, he'll gnaw"))
|
||||||
|
|
||||||
err := plan.Execute()
|
err := plan.Execute()
|
||||||
suite.EqualError(err, "in execution step 0: oh, he'll gnaw")
|
suite.EqualError(err, "while executing *helm.MockStep step: oh, he'll gnaw")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *PlanTestSuite) TestUpgrade() {
|
func (suite *PlanTestSuite) TestUpgrade() {
|
||||||
|
|
Loading…
Reference in a new issue