MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / _setupBroccoliWatcherBuild

Method _setupBroccoliWatcherBuild

lib/models/watcher.js:79–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 async _setupBroccoliWatcherBuild() {
80 try {
81 const hash = await this.watcher.currentBuild;
82 hash.graph.__heimdall__.remove();
83 } catch (e) {
84 if (e !== null && typeof e === 'object' && e.isBuilderError === true) {
85 // e must be a builder error which we can safely ignore.
86 //
87 // Builder errors are expected failures which are handled and presented
88 // to the user else-where. To prevent double reporting faliures to the
89 // user, it is important that we ignore them here as this functions
90 // single responsibilty is to reset the himedall state after each build.
91 //
92 // exists to prune heimdall data after a build. Those errors are
93 // reported elsewhere.
94 //
95 } else {
96 // this error is unexpected, we must re-throw as we cannot be sure it
97 // has been handled else-where
98 throw e;
99 }
100 }
101 }
102
103 _totalTime(hash) {
104 const sumNodes = (node, cb) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected