face the music
Getting the scold you deserve because you messed up and you know it.
I cheated on the test. Now I have to face the music.
He talked back to the teacher. He knew he was gonna get yelled at.
She broke the classroom door. Now she has to face the music.