Skip to content

Commit

Permalink
message: bubble encoding errors to WalkFunc
Browse files Browse the repository at this point in the history
Only charset errors were forwarded.
  • Loading branch information
emersion committed Oct 27, 2020
1 parent 5fe85ff commit 6098f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (e *Entity) Walk(walkFunc WalkFunc) error {
multipartReaders = multipartReaders[:len(multipartReaders)-1]
path = path[:len(path)-1]
continue
} else if IsUnknownCharset(err) {
} else if IsUnknownEncoding(err) || IsUnknownCharset(err) {
// Forward the error to walkFunc
} else if err != nil {
return err
Expand Down

0 comments on commit 6098f43

Please sign in to comment.