Skip to content

Commit

Permalink
Merge pull request #1770 from hashicorp/b-fix-acctest
Browse files Browse the repository at this point in the history
helper/resource: fix accidentaly swallowing of acctest step errors
  • Loading branch information
phinze committed May 1, 2015
2 parents e3616d3 + dbf6d1b commit 5d07394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/resource/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ func testStep(

// Check! Excitement!
if step.Check != nil {
if err = step.Check(state); err != nil {
err = fmt.Errorf("Check failed: %s", err)
if err := step.Check(state); err != nil {
return state, fmt.Errorf("Check failed: %s", err)
}
}

Expand Down

0 comments on commit 5d07394

Please sign in to comment.