Skip to content

Commit c69e755

Browse files
author
Craig Furman
committed
validate: add context to connection error
When src-validate fails to connect to a service, name that service in the error message.
1 parent b24f883 commit c69e755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/validate/kube/kube.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func Connections(ctx context.Context, config *Config) ([]validate.Result, error)
494494
Stderr: &stderr,
495495
})
496496
if err != nil {
497-
return nil, err
497+
return nil, errors.Wrapf(err, "connecting to %s", c.src.Name)
498498
}
499499

500500
if stderr.String() != "" {

0 commit comments

Comments
 (0)