Phrase errors in Execute the same as in Prepare [#33]
This commit is contained in:
@@ -85,7 +85,7 @@ func (p *Plan) Execute() error {
|
||||
}
|
||||
|
||||
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"))
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user