Merge pull request #50 from seriousben/add_error_handler

Adding error handler on upload stream
This commit is contained in:
Raymond Feng 2015-03-02 08:36:55 -08:00
commit 1f69ece7c7
1 changed files with 4 additions and 0 deletions

View File

@ -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];