1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Log error in vulcanize.js when one is raised

This commit is contained in:
Paulus Schoutsen
2017-07-01 15:01:45 -07:00
parent 594f143ad0
commit 31af2968da

View File

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