diff --git a/pkg/recipe/git.go b/pkg/recipe/git.go index 9a5dd95b..e430d71a 100644 --- a/pkg/recipe/git.go +++ b/pkg/recipe/git.go @@ -40,14 +40,14 @@ func (r Recipe) Ensure(ctx EnsureContext) error { if !ctx.Offline { if err := r.EnsureUpToDate(); err != nil { - log.Fatal(err) + return err } } if r.EnvVersion != "" && !ctx.IgnoreEnvVersion { log.Debugf("ensuring env version %s", r.EnvVersion) if strings.Contains(r.EnvVersion, "+U") { - log.Fatalf("can not redeploy chaos version (%s) without --chaos", r.EnvVersion) + return fmt.Errorf("can not redeploy chaos version (%s) without --chaos", r.EnvVersion) } if _, err := r.EnsureVersion(r.EnvVersion); err != nil {