Log error in vulcanize.js when one is raised

pull/320/head
Paulus Schoutsen 2017-07-01 15:01:45 -07:00
parent 594f143ad0
commit 31af2968da
1 changed files with 2 additions and 1 deletions

View File

@ -103,4 +103,5 @@ hyd.Analyzer.analyze('src/home-assistant.html')
// Chain all vulcanizing work as promises
.then(() => toProcess.reduce(
(p, entry) => p.then(() => vulcanizeEntry(entry)),
Promise.resolve()));
Promise.resolve()))
.catch(err => console.error('Something went wrong!', err));