removed curl error flag