From d64f7194966f62cf8b7789cd8efaff4aaaaec0c3 Mon Sep 17 00:00:00 2001 From: Vera Bogdanich Espina Date: Tue, 9 Aug 2022 15:13:03 -0700 Subject: [PATCH] fix(resource.template): remove print to standard output when JSON unmarshal in a resource fails --- generate/templates/resource.template | 1 - 1 file changed, 1 deletion(-) diff --git a/generate/templates/resource.template b/generate/templates/resource.template index 424bc0a9b3..97d6792ed2 100644 --- a/generate/templates/resource.template +++ b/generate/templates/resource.template @@ -107,7 +107,6 @@ func (r *{{.StructName}}) UnmarshalJSON(b []byte) error { dec.DisallowUnknownFields() // Force error if unknown field is found if err := dec.Decode(&res); err != nil { - fmt.Printf("ERROR: %s\n", err) return err }