code: def report_errors(audit, url):
          
          errors = AxeCoreAudit.get_errors(audit)
          if errors["total"] > 0:
              msg = u"URL '{}' has {} errors:\n\n{}".format(
                  url,
                  errors["total"],
                  AxeCoreAudit.format_errors(errors["errors"])
              )
              raise AccessibilityError(msg)
docs: Args:
  
              audit: results of `AxeCoreAudit.do_audit()`.
              url: the url of the page being audited.
  
          Raises: `AccessibilityError`