display curl error message on failure (i.e: timeout, dns lookup etc.)