The one who admonishes his brother secretly, he has advised sincerely and has honored him. If he does it outwardly (among others) then he has dishonored and shamed him.
Al-Shafi‘iTo admonish your brother in private is to advise him and improve him. But to admonish him publicly is to disgrace and shame him.
Al-Shafi‘i