Merge pull request #35 from timaschew/patch-1

Make CLI exit with error if publishing fails.
This commit is contained in:
Tim Schaub 2015-12-07 09:35:00 -07:00
commit 392de02ad0

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');
});