fix old calls to withErrors(), error message class