]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_operate: provide better errmsg for -G with bad URL
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Nov 2022 14:46:17 +0000 (15:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Nov 2022 23:45:24 +0000 (00:45 +0100)
commit7f182f713618eacde2e25094a6cf4fa07fbd251a
tree4454a9cb662f5fb800fe534ed1904da19f72d8ca
parentaecc549699e90e316ba6614199ca2d53a96857b3
tool_operate: provide better errmsg for -G with bad URL

If the URL that -G would try to add a query to could not be parsed, it would
display

 curl: (27) Out of memory

It now instead shows:

 curl: (2) Could not parse the URL, failed to set query

Reported-by: Alex Xu
Fixes #9889
Closes #9892
src/tool_operate.c