code: def report_errors(audit, url):
          
          errors = AxsAudit.get_errors(audit)
          if errors:
              msg = u"URL '{}' has {} errors:\n{}".format(
                  url,
                  len(errors),
                  ', '.join(errors)
              )
              raise AccessibilityError(msg)
docs: Args:
  
              audit: results of `AxsAudit.do_audit()`.
              url: the url of the page being audited.
  
          Raises: `AccessibilityError`