Skip to content

Commit

Permalink
no need to wrap, err is nil (flyteorg#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
wild-endeavor authored Feb 7, 2020
1 parent 012ede3 commit 78d2531
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (r RemoteFileOutputReader) Exists(ctx context.Context) (bool, error) {
}
if md.Exists() {
if md.Size() > r.maxPayloadSize {
return false, errors.Wrapf(err, "error file @[%s] is too large [%d] bytes, max allowed [%d] bytes", r.outPath.GetErrorPath(), md.Size(), r.maxPayloadSize)
return false, errors.Errorf("error file @[%s] is too large [%d] bytes, max allowed [%d] bytes", r.outPath.GetErrorPath(), md.Size(), r.maxPayloadSize)
}
return true, nil
}
Expand Down

0 comments on commit 78d2531

Please sign in to comment.