mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
Merge pull request #35 from timaschew/patch-1
Make CLI exit with error if publishing fails.
This commit is contained in:
commit
392de02ad0
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue