a rap on/over the knuckles idiom
严厉的批评;厉声的指责;愤怒的谴责
the act of speaking to someone severely or angrily because of something they have done or failed to do
I got a rap on the knuckles for not finishing my essay on time. 我因为没有按时完成论文受到了严厉的批评。