Skip to content

Commit

Permalink
fix(storage): Improve error msg for limit exceeded (#5275)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored Apr 24, 2024
1 parent 6b03731 commit f0d645b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytestdlib/storage/stow_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (s *StowStore) ReadRaw(ctx context.Context, reference DataReference) (io.Re

if GetConfig().Limits.GetLimitMegabytes != 0 {
if sizeBytes > GetConfig().Limits.GetLimitMegabytes*MiB {
return nil, errors.Errorf(ErrExceedsLimit, "limit exceeded. %.6fmb > %vmb.", float64(sizeBytes)/float64(MiB), GetConfig().Limits.GetLimitMegabytes)
return nil, errors.Errorf(ErrExceedsLimit, "limit exceeded. %.6fmb > %vmb. You can increase the limit by setting maxDownloadMBs.", float64(sizeBytes)/float64(MiB), GetConfig().Limits.GetLimitMegabytes)
}
}

Expand Down

0 comments on commit f0d645b

Please sign in to comment.