diff --git a/index.js b/index.js index cfeea47..043d913 100644 --- a/index.js +++ b/index.js @@ -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);