Skip to content

Commit 03c3d5f

Browse files
committed
correctly pass chunkedpassthrough err to messagesplitter
1 parent 92d54ee commit 03c3d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mail-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ class MailParser extends Transform {
165165

166166
this.decoder = this.getDecoder();
167167

168-
this.chunkedPassthrough.on('error', () => {
169-
this.splitter.emit('error');
168+
this.chunkedPassthrough.on('error', err => {
169+
this.splitter.emit('error', err);
170170
});
171171

172172
this.splitter.on('readable', () => {

0 commit comments

Comments
 (0)