diff --git a/bin/gh-pages b/bin/gh-pages index 31243e1..9b25895 100755 --- a/bin/gh-pages +++ b/bin/gh-pages @@ -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'); });