From e4f3e3effa2de6099d96c5c6aa9ef8132ff9f201 Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Thu, 29 Oct 2020 11:32:10 -0700 Subject: [PATCH] show the error if the unexpected happens Signed-off-by: Joe Julian --- pkg/lint/rules/deprecations_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lint/rules/deprecations_test.go b/pkg/lint/rules/deprecations_test.go index ce2af78ba..96e072d14 100644 --- a/pkg/lint/rules/deprecations_test.go +++ b/pkg/lint/rules/deprecations_test.go @@ -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{