Thermodynamic and critical properties of the charge density wave system ErTe3