def print_error_files(errors, max_marks):
    """Print the lines with files that generated errors"""
    fmt_error = '{0:<%d} {1:<10}' % (22 + max_marks)
    permission_error = False
    for filename in errors:
        error = errors[filename]
        if 'Permission denied' in error:
            error_string = 'Permission denied'
            permission_error = True
        else:
            error_string = error
        print(fmt_error.format(error_string, filename))
    return permission_error
