check the error message returned.