this does not look good
it seems you're passing truck from the right. there is no marking yet so it is still a "one lane" in the same direction. in this case, you have to yield to the one in front of you. my guess is that you thought truck was going to turn left and you did not pay attention when he suddenly made a right turn.
i know it's hard to swallow, but again, it could be a lot worse. so count blessings, really.