Curl  error check.