curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

show the URL in the error message?

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 15 Nov 2020 23:39:53 +0100 (CET)

Hi friends,

User Earnestly over at github pointed out [1] that when you download multiple
URLs with curl in parallel and one or more or them fail, it isn't really
possible to tell what URL each error message is in regards to.

When I worked on a fix, it struck me that it can indeed also be helpful when
doing multiple URLs in serial as well and one of the URLs in the series fail.

One way to fix this issue, is to include the used URL in the error message,
which is what my current PR does [2].

A. Should we really add the URL in all error messages unconditionally?
(Consistency could be one reason to favor it.)

B. Should we add a new option for this, that enables it by default for
parallel mode and is disabled by default otherwise?

C. Can we do better?

Thoughts?

[1] = https://github.com/curl/curl/issues/6199
[2] = https://github.com/curl/curl/pull/6207

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-11-15