Skip to content

Commit c99e1b1

Browse files
Prefix service validation error with service name (#669)
* prefix service update errors with service name * Update src/pkg/cli/client/byoc/aws/byoc.go Co-authored-by: Lio李歐 <[email protected]> --------- Co-authored-by: Lio李歐 <[email protected]>
1 parent d322cba commit c99e1b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkg/cli/client/byoc/aws/byoc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (b *ByocAws) Deploy(ctx context.Context, req *defangv1.DeployRequest) (*def
129129
for _, service := range req.Services {
130130
serviceInfo, err := b.update(ctx, service)
131131
if err != nil {
132-
return nil, err
132+
return nil, fmt.Errorf("service %q: %w", service.Name, err)
133133
}
134134
serviceInfo.Etag = etag // same etag for all services
135135
serviceInfos = append(serviceInfos, serviceInfo)

0 commit comments

Comments
 (0)