Skip to content

Commit

Permalink
update error
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Jul 29, 2024
1 parent 9c14d19 commit 5497662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func GetEndpoint(ctx context.Context, m *mesheryv1alpha1.Broker, client *kuberne
if !utils.TcpCheck(endpoint.External, &utils.MockOptions{}) && endpoint.External.Address != "localhost" {
endpoint.External.Port = nodePort
if !utils.TcpCheck(endpoint.External, &utils.MockOptions{}) {
return ErrGettingEndpoint(err)
return ErrGettingEndpoint(fmt.Errorf("unable to connect to endpoint at %v", endpoint.External))
}
}
}
Expand Down

0 comments on commit 5497662

Please sign in to comment.