diff --git a/cmd/formatter/print_test.go b/cmd/formatter/print_test.go index d6690f7d73d..f96846af479 100644 --- a/cmd/formatter/print_test.go +++ b/cmd/formatter/print_test.go @@ -88,9 +88,9 @@ func ExamplePrint_alternative() { func ExamplePrintError() { formatter.SetFormatter("text") - formatter.PrintError(errors.New("text error")) + formatter.PrintError(errors.New("text error"), "text error") formatter.SetFormatter("json") - formatter.PrintError(errors.New("json error")) + formatter.PrintError(errors.New("json error"), "json error") // Output: // text error