Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
backport of commit d2db6be
Browse files Browse the repository at this point in the history
  • Loading branch information
krantzinator committed Nov 9, 2020
1 parent c866432 commit 32ac905
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cli/base.go
Expand Up @@ -301,6 +301,7 @@ func (c *baseCommand) DoApp(ctx context.Context, f func(context.Context, *client

// Just a serialize loop for now, one day we'll parallelize.
var finalErr error
var didErrSentinel bool
for _, app := range apps {
// Support cancellation
if err := ctx.Err(); err != nil {
Expand All @@ -311,11 +312,13 @@ func (c *baseCommand) DoApp(ctx context.Context, f func(context.Context, *client
if err != ErrSentinel {
finalErr = multierror.Append(finalErr, err)
} else {
// if we have an ErrSentinel here, we've already output info to the UI
return err
didErrSentinel = true
}
}
}
if finalErr == nil && didErrSentinel {
finalErr = ErrSentinel
}

return finalErr
}
Expand Down

0 comments on commit 32ac905

Please sign in to comment.