Changed error message in doRequest definition