1 | var chalk = require('chalk');
|
2 |
|
3 |
|
4 | function printErrors(summary, errors) {
|
5 | console.log(chalk.red(summary));
|
6 | console.log();
|
7 | errors.forEach(err => {
|
8 | console.log(err.message || err);
|
9 | console.log();
|
10 | });
|
11 | }
|
12 |
|
13 | module.exports = printErrors;
|