def analyze_results(results):
    """
    Check the results of the dependency analyses and report errors

    :type results: list[pordego_dependency.analysis_result.AnalysisResult]
    :raise: AssertionError
    """
    errors = []
    for result in results:
        if result.has_error:
            errors.extend(result.error_messages)
    if errors:
        raise AssertionError('\n\n'.join(errors))
