MCPcopy
hub / github.com/webpack/webpack-dev-server / error

Method error

lib/Server.js:2843–2849  ·  view source on GitHub ↗

* @param {boolean} useColor need to use color? * @param {string} msg message * @returns {string} message with colors

(useColor, msg)

Source from the content-addressed store, hash-verified

2841 * @returns {string} message with colors
2842 */
2843 error(useColor, msg) {
2844 if (useColor) {
2845 return red(msg);
2846 }
2847
2848 return msg;
2849 },
2850 };
2851 const useColor = getColorsOption(this.getCompilerOptions());
2852

Callers 12

applyMethod · 0.80
constructorMethod · 0.80
index.test.jsFile · 0.80
constructorMethod · 0.80
app.jsFile · 0.80
app.jsFile · 0.80
index.jsFile · 0.80
errorsFunction · 0.80
errorFunction · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected