Ensure that the next layer in the middleware handles the error
This commit is contained in:
parent
575c64b6b8
commit
c7bf0458e2
3
app.js
3
app.js
|
@ -220,10 +220,9 @@ app.get('/draggables', function(req, res) {
|
|||
// The upload controller: handles uploads from the main site. This can
|
||||
// either be a file or some pasted text. After upload the controler
|
||||
// redirects to the main page which includes the just uploaded file.
|
||||
app.post('/draggables', function(req, res) {
|
||||
app.post('/draggables', function(req, res, next) {
|
||||
req.form.complete(function(err, fields, files) {
|
||||
if (err) {
|
||||
// FIXME: next is undefined!
|
||||
next(err);
|
||||
}
|
||||
else {
|
||||
|
|
Reference in New Issue