From 68cbde492da7911f67e9cce561d4c877ae36bdbf Mon Sep 17 00:00:00 2001 From: Sebastien Devaux Date: Fri, 4 Jan 2019 15:38:47 +0100 Subject: [PATCH] Fixed golangci check error about new error from format string --- commands/show.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/show.go b/commands/show.go index 15b42984c0f7ae85332a7e952e2225adfbbe6457..bc89824144d3a8f380d451646250d2314101b619 100644 --- a/commands/show.go +++ b/commands/show.go @@ -104,7 +104,7 @@ func runShowBug(cmd *cobra.Command, args []string) error { } fmt.Printf("\n") if err { - return errors.New(fmt.Sprintf("Unsupported fields requested: %s\n",unknownFields)) + return fmt.Errorf("Unsupported fields requested: %s\n",unknownFields) } }