Skip to content

Commit da009ad

Browse files
committed
Include logical resource id in error text
1 parent 86c0007 commit da009ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func run(ctx context.Context, stackName string, args []string) error {
126126
continue
127127
}
128128
if evt.ResourceStatus == types.ResourceStatusUpdateFailed && unptr(evt.ResourceStatusReason) != "Resource update cancelled" {
129-
return fmt.Errorf("%v: %s", evt.ResourceStatus, unptr(evt.ResourceStatusReason))
129+
return fmt.Errorf("%s %v: %s", unptr(evt.LogicalResourceId), evt.ResourceStatus, unptr(evt.ResourceStatusReason))
130130
}
131131
debugf("%s\t%s\t%v", unptr(evt.ResourceType), unptr(evt.LogicalResourceId), evt.ResourceStatus)
132132
if unptr(evt.LogicalResourceId) == stackName && unptr(evt.ResourceType) == "AWS::CloudFormation::Stack" {

0 commit comments

Comments
 (0)