From 68cbde492da7911f67e9cce561d4c877ae36bdbf Mon Sep 17 00:00:00 2001 From: Sebastien Devaux Date: Fri, 4 Jan 2019 15:38:47 +0100 Subject: Fixed golangci check error about new error from format string --- commands/show.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/show.go') diff --git a/commands/show.go b/commands/show.go index 15b42984..bc898241 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) } } -- cgit