Adding error handler on upload stream
This commit is contained in:
parent
4e4a8f44be
commit
55997f8a9f
|
@ -114,6 +114,10 @@ exports.upload = function (provider, req, res, options, cb) {
|
|||
}
|
||||
var writer = provider.upload(uploadParams);
|
||||
|
||||
writer.on('error', function(err) {
|
||||
self._error(err);
|
||||
});
|
||||
|
||||
var endFunc = function () {
|
||||
self._flushing--;
|
||||
var values = files[part.name];
|
||||
|
|
Loading…
Reference in New Issue