sanitizing the error message