def hasError(data):
    """
    Checks whether or not a string "error" is in the given argument.
    :param data: The element that must be checked for if it contains the string "error". \t
    :type data: mixed \n
    :returns: True of false depending on if the "error" was in the given argument.  \t
    :rtype: : bool \n
    """
    return "error" in data