From: Daniel Stenberg Date: Mon, 22 Nov 2021 17:09:43 +0000 (+0100) Subject: curl: improve error message for --head with -J X-Git-Tag: curl-7_81_0~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffb6a9e8a6a13c4fdd8df2134f64e377a57e25be;p=thirdparty%2Fcurl.git curl: improve error message for --head with -J ... it now focuses on the "output of headers" combined with the --remote-header-name option, as that is actually the problem. Both --head and --include can output headers. Reported-by: nimaje on github Fixes #7987 Closes #8045 --- diff --git a/src/tool_helpers.c b/src/tool_helpers.c index 04b0510be8..9244d1fb5a 100644 --- a/src/tool_helpers.c +++ b/src/tool_helpers.c @@ -69,7 +69,7 @@ const char *param2text(int res) case PARAM_NO_NOT_BOOLEAN: return "used '--no-' for option that isn't a boolean"; case PARAM_CONTDISP_SHOW_HEADER: - return "--include and --remote-header-name cannot be combined"; + return "showing headers and --remote-header-name cannot be combined"; case PARAM_CONTDISP_RESUME_FROM: return "--continue-at and --remote-header-name cannot be combined"; default: