changed error handling if Curl is not enabled in Curl class