def process_failed(returncode, stdout):
    """Return True if the process failed."""

    if returncode != 0:
        return True
    if 'badly_formatted' in stdout:
        return True
    return False