/**
 * Applies formatters to all AnnotatedErrors.
 */
function formatErrors(errors, formatters, errorType) {
  const format = (formatter) => formatter(errors, errorType) || [];
  const flatten = (accum, curr) => accum.concat(curr);

  return formatters.map(format).reduce(flatten, [])
}

module.exports = formatErrors;

@@ -43,16 +43,203 @@
 Errors.%0A
+ *%0A * A formatter has the following signature FormattedError =%3E Array%3CString%3E.%0A * It takes a formatted error produced by a transormer and returns a list%0A * of log statements to print.%0A *%0A
  */%0Afunc

Add doc/comment for fomatters