Add some file upload error handling

This commit is contained in:
Isaac Lewis
2015-03-03 12:39:59 -08:00
parent f6cb56397a
commit 1e5c5098d2

View File

@@ -56,6 +56,8 @@ hexo.extend.deployer.register('s3', function (args, callback) {
}).on('end', function() {
console.log('Done!');
callback();
}).on('fail', function(err) {
console.log(err)
});
files.pipe(uploader);