1 | var util = require('util');
|
2 |
|
3 | /**
|
4 | * @param {Errors[]} errorsCollection
|
5 | */
|
6 | module.exports = function(errorsCollection) {
|
7 | errorsCollection.forEach(function(errors) {
|
8 | var file = errors.getFilename();
|
9 | if (!errors.isEmpty()) {
|
10 | errors.getErrorList().forEach(function(error) {
|
11 | console.log(util.format('%s:%d:%d: %s', file, error.line, error.column, error.message));
|
12 | });
|
13 | }
|
14 | });
|
15 | };
|