Print out errors that occur during publishing.
This commit is contained in:
Родитель
52895d30f0
Коммит
3d3b88b3b1
3
index.js
3
index.js
|
@ -276,7 +276,8 @@ function runReset() {
|
||||||
function runPublish() {
|
function runPublish() {
|
||||||
ghpages.publish(DIST_DIR, function (err) {
|
ghpages.publish(DIST_DIR, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('There was an error during publishing.');
|
console.error('There was an error during publishing:');
|
||||||
|
console.error(err.message);
|
||||||
} else {
|
} else {
|
||||||
console.log('Publish to GitHub was successful.');
|
console.log('Publish to GitHub was successful.');
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче