cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Parsing in src/tool_parsecfg.c

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Dec 2013 08:22:56 +0100 (CET)

On Fri, 6 Dec 2013, Daniel Stenberg wrote:

>> The %HOME/_curlrc is automatically loaded and parsed. That's why the "curl:
>> (43) A libcurl function was given a bad argument" was so mysterious to me.
>
> Ouch, yeah I completely understand that. I'll see what I can do to improve
> that error message/identification.

Here's a stab at presenting a warning to aid users detect syntax problems in
the config files. It sees unquoted white spaces in the parameter and warns
about them.

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2013-12-09