helper/resource: fix accidentaly swallowing of acctest step errors
With #1757 I unwittingly reused an err variable, causing all test check errors to be swallowed. -_-
This commit is contained in:
parent
e3616d391a
commit
dbf6d1bd00
|
@ -235,8 +235,8 @@ func testStep(
|
||||||
|
|
||||||
// Check! Excitement!
|
// Check! Excitement!
|
||||||
if step.Check != nil {
|
if step.Check != nil {
|
||||||
if err = step.Check(state); err != nil {
|
if err := step.Check(state); err != nil {
|
||||||
err = fmt.Errorf("Check failed: %s", err)
|
return state, fmt.Errorf("Check failed: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue