did a lot of work with the error message although the error object is still not working