Fixed golangci check error about new error from format string

Sebastien Devaux created

Change summary

commands/show.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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)
 		}
 	}