Skip to content

Commit

Permalink
Add resource ID to refresh errors
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored and Radek Simko committed Jul 22, 2015
1 parent 8e477b7 commit a22dc2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/eval_refresh.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package terraform

import (
"fmt"
"log"
)

Expand Down Expand Up @@ -35,7 +36,7 @@ func (n *EvalRefresh) Eval(ctx EvalContext) (interface{}, error) {
// Refresh!
state, err = provider.Refresh(n.Info, state)
if err != nil {
return nil, err
return nil, fmt.Errorf("%s: %s", n.Info.Id, err.Error())
}

// Call post-refresh hook
Expand Down

0 comments on commit a22dc2a

Please sign in to comment.