Phrase errors in Execute the same as in Prepare [#33]

This commit is contained in:
Erin Call 2019-12-24 15:49:47 -08:00
parent d86ac72529
commit cb58b5a021
No known key found for this signature in database
GPG key ID: 4071FF6C15B8DAD1
2 changed files with 2 additions and 2 deletions

View file

@ -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)
} }
} }

View file

@ -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() {