commands/operator-sdk/cmd/scorecard: add clear error message when kubeconfig is missing
@@ -140,7 +140,7 @@ func ScorecardTests(cmd *cobra.Command, args []string) error {
var err error
kubeconfig, SCConf.Namespace, err = k8sInternal.GetKubeconfigAndNamespace(SCConf.KubeconfigPath)
if err != nil {
- return err
+ return fmt.Errorf("failed to build the kubeconfig: %v", err)
}
scheme := runtime.NewScheme()
// scheme for client go
