show the error if the unexpected happens

Signed-off-by: Joe Julian <me@joejulian.name>
pull/8608/head
Joe Julian 5 years ago
parent 52ca3b01c2
commit e4f3e3effa
No known key found for this signature in database
GPG Key ID: FAB12BE0575D999B

@ -29,7 +29,7 @@ func TestValidateNoDeprecations(t *testing.T) {
}
depErr := err.(deprecatedAPIError)
if depErr.Message == "" {
t.Fatal("Expected error message to be non-blank")
t.Fatalf("Expected error message to be non-blank: %v", err)
}
if err := validateNoDeprecations(&K8sYamlStruct{

Loading…
Cancel
Save