MCPcopy
hub / github.com/FredKSchott/snowpack / handleValidationErrors

Function handleValidationErrors

snowpack/src/config.ts:511–516  ·  view source on GitHub ↗
(filepath: string, err: ConfigValidationError)

Source from the content-addressed store, hash-verified

509}
510
511function handleValidationErrors(filepath: string, err: ConfigValidationError) {
512 const msg = `! ${filepath}\n${err.message}`;
513 logger.error(msg);
514 logger.info(dim(`See https://www.snowpack.dev for more info.`));
515 throw new Error(msg);
516}
517
518function handleDeprecatedConfigError(mainMsg: string, ...msgs: string[]) {
519 const msg = `${mainMsg}\n${msgs.join('\n')}See https://www.snowpack.dev for more info.`;

Callers 1

loadConfigurationFunction · 0.85

Calls 2

errorMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected