Skip to content

Commit

Permalink
Merge pull request #36 from dries/master
Browse files Browse the repository at this point in the history
Add error handlers for parser errors
  • Loading branch information
richardgirges authored Jun 30, 2017
2 parents b9ee66e + 0713f6f commit 27b6136
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,14 @@ function processMultipart(options, req, res, next) {
req.files[fieldname] = [req.files[fieldname], newFile];
}
});

file.on('error', next);
});

busboy.on('finish', next);

busboy.on('error', next);

req.pipe(busboy);
}

Expand Down

0 comments on commit 27b6136

Please sign in to comment.