get errors back the right way