fix #20 and comments of #22

always handle error argument in a callback
This commit is contained in:
Anton Wilhelm 2015-12-07 12:04:51 +01:00
parent 1447396597
commit e7d1e31573

View file

@ -27,6 +27,10 @@ ghpages.publish(path.join(process.cwd(), program.dist), {
logger: function(message) {
console.log(message);
}
}, function() {
}, function(err) {
if (err != null) {
console.log(err)
return process.exit(1);
}
console.log('Published');
});