Add some file upload error handling
This commit is contained in:
2
index.js
2
index.js
@@ -56,6 +56,8 @@ hexo.extend.deployer.register('s3', function (args, callback) {
|
|||||||
}).on('end', function() {
|
}).on('end', function() {
|
||||||
console.log('Done!');
|
console.log('Done!');
|
||||||
callback();
|
callback();
|
||||||
|
}).on('fail', function(err) {
|
||||||
|
console.log(err)
|
||||||
});
|
});
|
||||||
|
|
||||||
files.pipe(uploader);
|
files.pipe(uploader);
|
||||||
|
|||||||
Reference in New Issue
Block a user