直线2(a+1)x+ay-2=0与直线ax+2y+1=0垂直,则a=