That is rather unprofessional of your manager. If he did that in front of the client he has only undermined the company.