MCPcopy
hub / github.com/webpack/webpack / addError

Method addError

lib/Module.js:790–795  ·  view source on GitHub ↗

* Adds the provided error to the module. * @param {Error} error the error * @returns {void}

(error)

Source from the content-addressed store, hash-verified

788 * @returns {void}
789 */
790 addError(error) {
791 if (this._errors === undefined) {
792 this._errors = [];
793 }
794 this._errors.push(error);
795 }
796
797 /**
798 * Returns list of errors if any.

Callers 10

_createLoaderContextMethod · 0.80
markModuleAsErroredMethod · 0.80
buildMethod · 0.80
applyTemplateMethod · 0.80
parseMethod · 0.80
_emitErrorMethod · 0.80
applyMethod · 0.80
processCallRequireMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected