Skip to content

Commit

Permalink
fix: merge multierrors
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Apr 26, 2024
1 parent b6ddeaf commit a16599f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions victor.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ func Victor(ctx context.Context, args *VictorArgs) error {
for _, res := range args.Resources {
name, version, _ := strings.Cut(res, " ")
if args.Server == nil {
multierr.Append(merr, ws.InstallPlugin(ctx, name, version))
merr = multierr.Append(merr, ws.InstallPlugin(ctx, name, version))
continue
}
multierr.Append(merr, ws.InstallPluginFromServer(ctx, name, version, *args.Server))
merr = multierr.Append(merr, ws.InstallPluginFromServer(ctx, name, version, *args.Server))
}
if merr != nil {
return errors.Wrap(merr, "pulumi resources install, failing fast")
Expand Down

0 comments on commit a16599f

Please sign in to comment.