Skip to content

Commit e2e36ee

Browse files
authored
Merge pull request ko-build#1189 from SaschaSchwarze0/sascha-fix-error-message
Correct cluster name in error message when no nodes are found
2 parents 150ff44 + 7698aa3 commit e2e36ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/publish/kind/write.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func getNodes() ([]nodes.Node, error) {
114114
return nil, err
115115
}
116116
if len(nodeList) == 0 {
117-
return nil, fmt.Errorf("no nodes found for cluster %q", cluster.DefaultName)
117+
return nil, fmt.Errorf("no nodes found for cluster %q", clusterName)
118118
}
119119

120120
return nodeList, nil

0 commit comments

Comments
 (0)