Add resource ID to refresh errors

This commit is contained in:
Radek Simko 2015-07-22 13:51:14 +02:00 committed by Radek Simko
parent 8e477b78d8
commit a22dc2a9a2
1 changed files with 2 additions and 1 deletions

View File

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