Skip to content

Commit

Permalink
refactor: enhance error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKujawa committed Nov 18, 2022
1 parent 8cd13de commit e9f568e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-chaos/internal/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c K8Client) getGatewayDeployment() (*v12.Deployment, error) {
// here it is currently hard to distingush between not existing and embedded gateway;
// since we don't use embedded gateway in our current chaos setup I would not support it right now here
if deploymentList == nil || len(deploymentList.Items) <= 0 {
return nil, errors.New(fmt.Sprintf("Expected to find standalone gateway deployment in namespace %s, but none found!", c.GetCurrentNamespace()))
return nil, errors.New(fmt.Sprintf("Expected to find standalone gateway deployment in namespace %s, but none found! The embedded gateway is not supported.", c.GetCurrentNamespace()))
}
return &deploymentList.Items[0], err
}

0 comments on commit e9f568e

Please sign in to comment.