Add resource ID to refresh errors
This commit is contained in:
parent
8e477b78d8
commit
a22dc2a9a2
|
@ -1,6 +1,7 @@
|
||||||
package terraform
|
package terraform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ func (n *EvalRefresh) Eval(ctx EvalContext) (interface{}, error) {
|
||||||
// Refresh!
|
// Refresh!
|
||||||
state, err = provider.Refresh(n.Info, state)
|
state, err = provider.Refresh(n.Info, state)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, fmt.Errorf("%s: %s", n.Info.Id, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call post-refresh hook
|
// Call post-refresh hook
|
||||||
|
|
Loading…
Reference in New Issue