code: private void listErrors(final Result result) {
          for (JSError warning : result.warnings) {
              getLog().warn(warning.toString());
          }
  
          for (JSError error : result.errors) {
              getLog().error(error.toString());
          }
      }
docs: List the errors that google is providing from the compiler output.
  
  @param result the results from the compiler