Improve curl error logs