code: def exit_with_error(format_, message):
      
      if format_ == "text" or format_ == "markdown":
          log.error(message)
      elif format_ == "json":
          result = {"success": False, "error": str(message), "issues": []}
          print(json.dumps(result))
      else:
          result = [
              {
                  "issues": [],
                  "sourceType": "",
                  "sourceFormat": "",
                  "sourceList": [],
                  "meta": {
                      "logs": [{"level": "error", "hidden": "true", "msg": message}]
                  },
              }
          ]
          print(json.dumps(result))
      sys.exit()
docs: :param format_:
      :param message: