There was an error while loading. Please reload this page.
2 parents a6c335b + cbc83e8 commit ff69ba4Copy full SHA for ff69ba4
tasks/http_upload.js
@@ -59,6 +59,8 @@ module.exports = function(grunt) {
59
headers: options.headers,
60
multipart: true,
61
data: reqData
62
+ }).on('error',function(e){
63
+ grunt.fail.warn('Failed uploading (error code: ' + e.message + ')');
64
}).on('complete', function(data, response) {
65
if (response !== null && response.statusCode >= 200 && response.statusCode < 300) {
66
grunt.log.ok('Upload successful of "' + filepath + '" as "' + field + '" - ' + options.method + ' @ ' + options.url);
0 commit comments