Skip to content

Commit

Permalink
fix: promotion valid command
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-krupka-vitech committed Mar 24, 2021
1 parent 1284266 commit 7e50097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/promotion/promotionCommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package promotion

import (
"context"
"fmt"
v1 "github.com/jenkins-x/jx-api/v4/pkg/apis/jenkins.io/v1"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -69,7 +70,7 @@ func (opt *PromotionOptions) Validate() error {
log.WithField("env", env.Name).Info("tested")
} else {
log.WithField("env", env.Name).Error("no large test executions found")
return err
return fmt.Errorf("no large test executions found for environment %s namespace %s", env.Name, env.Spec.Namespace)
}
}
log.Info("all changes are tested")
Expand Down

0 comments on commit 7e50097

Please sign in to comment.