Skip to content

Commit

Permalink
fix: FileTooLargeError must be returned as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed May 18, 2022
1 parent 2614858 commit 0c19f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/io/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (f *FSHandler) Upload(ns, file string, data []byte) error {

log.Info("Writing file", zap.String("path", p), zap.String("ns", ns), zap.String("file", file), zap.Int("size", (len(data))))
if f.limit < len(data) {
return io.FileTooLargeError{
return &io.FileTooLargeError{
Limit: f.limit,
Size: len(data),
}
Expand Down

0 comments on commit 0c19f2e

Please sign in to comment.