(filepath: string, err: ConfigValidationError)
| 509 | } |
| 510 | |
| 511 | function 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 | |
| 518 | function handleDeprecatedConfigError(mainMsg: string, ...msgs: string[]) { |
| 519 | const msg = `${mainMsg}\n${msgs.join('\n')}See https://www.snowpack.dev for more info.`; |
no test coverage detected