Skip to content

Commit

Permalink
Merge pull request #1189 from SaschaSchwarze0/sascha-fix-error-message
Browse files Browse the repository at this point in the history
Correct cluster name in error message when no nodes are found
  • Loading branch information
cpanato authored Dec 4, 2023
2 parents 150ff44 + 7698aa3 commit e2e36ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/publish/kind/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func getNodes() ([]nodes.Node, error) {
return nil, err
}
if len(nodeList) == 0 {
return nil, fmt.Errorf("no nodes found for cluster %q", cluster.DefaultName)
return nil, fmt.Errorf("no nodes found for cluster %q", clusterName)
}

return nodeList, nil
Expand Down

0 comments on commit e2e36ee

Please sign in to comment.