Skip to content

Commit 50eb65c

Browse files
committed
commands/.../build.go: make unmarshalling error fatal
1 parent 901b22e commit 50eb65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/operator-sdk/cmd/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func verifyDeploymentImage(yamlFile []byte, imageName string) error {
7676
yamlMap := make(map[string]interface{})
7777
err := yaml.Unmarshal(yamlSpec, &yamlMap)
7878
if err != nil {
79-
return fmt.Errorf("WARNING: Could not unmarshal yaml namespaced spec")
79+
log.Fatal("Could not unmarshal yaml namespaced spec")
8080
}
8181
kind, ok := yamlMap["kind"].(string)
8282
if !ok {

0 commit comments

Comments
 (0)