def error_in_list(error_stacktrace, error_list):
  """Returns if the error exists in the error list."""
  # Change all strings to lowercase for comparison.
  error_stacktrace = error_stacktrace.lower()
  error_list = [error.lower() for error in error_list]

  for error in error_list:
    if error in error_stacktrace:
      return True

  return False