Skip to content

Commit aa34ac0

Browse files
committed
commands/.../test/cluster.go: fix error capitalization
1 parent 046725f commit aa34ac0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commands/operator-sdk/cmd/test/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func testClusterFunc(cmd *cobra.Command, args []string) {
5858
globalCmd := exec.Command("kubectl", "create", "-f", globalManifestPathCluster)
5959
cmdOut, err := globalCmd.CombinedOutput()
6060
if err != nil {
61-
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("Could not create global resources: %v\nKubectl Output: %v", err, cmdOut))
61+
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("could not create global resources: %v\nKubectl Output: %v", err, cmdOut))
6262
}
6363
}
6464
testPod := &v1.Pod{
@@ -103,7 +103,7 @@ func testClusterFunc(cmd *cobra.Command, args []string) {
103103
fmt.Printf("Test Successfully Completed")
104104
return
105105
} else if testPod.Status.Phase == v1.PodFailed {
106-
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("Test Failed: %+v", kubeclient.CoreV1().Pods(testNamespace).GetLogs("operator-test", &v1.PodLogOptions{})))
106+
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("test Failed: %+v", kubeclient.CoreV1().Pods(testNamespace).GetLogs("operator-test", &v1.PodLogOptions{})))
107107
}
108108
}
109109
}

commands/operator-sdk/cmd/test/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func testLocalFunc(cmd *cobra.Command, args []string) {
9292
dc.Stderr = os.Stderr
9393
err := dc.Run()
9494
if err != nil {
95-
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("failed to exec %s %#v: %v", cmd, args, err))
95+
cmdError.ExitWithError(cmdError.ExitError, fmt.Errorf("failed to exec %v %#v: %v", cmd, args, err))
9696
}
9797
}
9898

0 commit comments

Comments
 (0)