MCPcopy
hub / github.com/webpack/webpack / handleError

Method handleError

lib/Watching.js:288–298  ·  view source on GitHub ↗
(err, cbs)

Source from the content-addressed store, hash-verified

286 * @param {ErrorCallback[]=} cbs callbacks
287 */
288 const handleError = (err, cbs) => {
289 this.compiler.hooks.failed.call(err);
290 this.compiler.cache.beginIdle();
291 this.compiler.idle = true;
292 this.handler(err, /** @type {Stats} */ (stats));
293 if (!cbs) {
294 cbs = this.callbacks;
295 this.callbacks = [];
296 }
297 for (const cb of cbs) cb(err);
298 };
299
300 if (
301 this.invalid &&

Callers

nothing calls this directly

Calls 3

beginIdleMethod · 0.80
callMethod · 0.45
handlerMethod · 0.45

Tested by

no test coverage detected