From a22dc2a9a2c63fceaa23be564478243eb6f641ac Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 22 Jul 2015 13:51:14 +0200 Subject: [PATCH] Add resource ID to refresh errors --- terraform/eval_refresh.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/eval_refresh.go b/terraform/eval_refresh.go index 3d25ecc8b150..fa2b8126cd06 100644 --- a/terraform/eval_refresh.go +++ b/terraform/eval_refresh.go @@ -1,6 +1,7 @@ package terraform import ( + "fmt" "log" ) @@ -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