display curl error if applicable