MCPcopy Create free account
hub / github.com/webpack/webpack-cli / handleWriteError

Method handleWriteError

packages/webpack-cli/src/webpack-cli.ts:3500–3503  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

3498
3499 if (options.json) {
3500 const handleWriteError = (error: Error) => {
3501 this.logger.error(error);
3502 process.exit(2);
3503 };
3504
3505 if (options.json === true) {
3506 Readable.from(stringifyChunked(stats.toJson(statsOptions as StatsOptions)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected