MCPcopy
hub / github.com/mswjs/msw / printFailureMessage

Function printFailureMessage

cli/init.js:156–164  ·  view source on GitHub ↗
(pathsWithErrors)

Source from the content-addressed store, hash-verified

154}
155
156function printFailureMessage(pathsWithErrors) {
157 // eslint-disable-next-line no-console
158 console.error(`\
159${colors.red('Copying the worker script failed at following paths:')}
160${pathsWithErrors
161 .map(([path, error]) => colors.gray(` - ${path}`) + '\n' + ` ${error}`)
162 .join('\n\n')}
163 `)
164}
165
166/**
167 * @param {string} packageJsonPath

Callers 1

initFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…