Log attempt to fetch unpublished entries

This commit is contained in:
Cássio Zen 2017-01-11 17:45:54 -02:00
parent 19e5c61f05
commit c40171820f

View File

@ -166,7 +166,12 @@ export default class API {
}
listUnpublishedBranches() {
return this.request(`${ this.repoURL }/git/refs/heads/cms`);
console.log("%c Checking for Unpublished entries", "line-height: 30px;text-align: center;font-weight: bold"); // eslint-disable-line
return this.request(`${ this.repoURL }/git/refs/heads/cms`)
.catch((error) => {
console.log("%c No Unpublished entries", "line-height: 30px;text-align: center;font-weight: bold"); // eslint-disable-line
throw error;
});
}
persistFiles(entry, mediaFiles, options) {