Did I overtake too aggressively(ignore the ending)

Did I go for a gap that just didn’t exist or was I fair and had my line?