Skip to content

Commit

Permalink
Fix error message when output file is too large to read (flyteorg#296)
Browse files Browse the repository at this point in the history
Signed-off-by: Haytham Abuelfutuh <[email protected]>

Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu authored Nov 17, 2022
1 parent aa06e38 commit 85c512e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (r RemoteFileOutputReader) Exists(ctx context.Context) (bool, error) {
}
if md.Exists() {
if 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 false, errors.Errorf("output file @[%s] is too large [%d] bytes, max allowed [%d] bytes", r.outPath.GetOutputPath(), md.Size(), r.maxPayloadSize)
}
return true, nil
}
Expand Down

0 comments on commit 85c512e

Please sign in to comment.