Wiktionary
take to task
vb. (context idiomatic English) To lecture, berate, admonish, or hold somebody accountable for his or her actions.