Reprove your friend in secret and praise him openly.
It is ill to praise, and worse to reprimand in matters that you do not understand.