fix: better message for redeploying chaos version
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

See #668
This commit is contained in:
2025-09-29 19:45:59 +02:00
parent a577ff3284
commit 7f4d14ea72
2 changed files with 8 additions and 3 deletions

View File

@ -49,7 +49,7 @@ func (r Recipe) Ensure(ctx EnsureContext) error {
if r.EnvVersion != "" && !ctx.IgnoreEnvVersion {
log.Debug(i18n.G("ensuring env version %s", r.EnvVersion))
if strings.Contains(r.EnvVersion, "+U") {
return errors.New(i18n.G("can not redeploy chaos version (%s) without --chaos", r.EnvVersion))
return errors.New(i18n.G(`cannot redeploy previous chaos version (%s), did you mean to use "--chaos"?`))
}
if _, err := r.EnsureVersion(r.EnvVersion); err != nil {