minor bug fix for curl_setopt call

* additionally some more debugging if call to Arango fails with unknown return code