adding error details and restricting to only being raised if issue occurs