Remove non-functional handling of curl_error()

Per the docs, curl_error() returns a full error string, not an int
or string of an int. Just remove that and pass the error back up.

Change-Id: Ic2822e9529feafb5c8c639e482859af4db27496e