Skip to content

Commit e76b6f3

Browse files
authored
fix: don't wrap sharedErr (#311)
1 parent 77fa9d0 commit e76b6f3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

go/porcelain/deploy.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ import (
2121
"time"
2222

2323
"github.com/cenkalti/backoff/v4"
24+
apierrors "github.com/go-openapi/errors"
2425
"github.com/pkg/errors"
26+
"github.com/rsc/goversion/version"
2527
"github.com/sirupsen/logrus"
2628

2729
"github.com/netlify/open-api/v2/go/models"
2830
"github.com/netlify/open-api/v2/go/plumbing/operations"
2931
"github.com/netlify/open-api/v2/go/porcelain/context"
30-
31-
apierrors "github.com/go-openapi/errors"
32-
"github.com/rsc/goversion/version"
3332
)
3433

3534
const (
@@ -439,7 +438,7 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl
439438

440439
if sharedErr.err != nil {
441440
sharedErr.mutex.Unlock()
442-
return errors.Wrapf(sharedErr.err, "aborting upload of file %s due to upload failure", f.Name)
441+
return fmt.Errorf("aborting upload of file %s due to failed upload of another file", f.Name)
443442
}
444443
sharedErr.mutex.Unlock()
445444

0 commit comments

Comments
 (0)