From fff9ef09e221542f69870357033adc63b4a68203 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 22 Nov 2021 18:09:43 +0100 Subject: 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 --- src/tool_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_helpers.c b/src/tool_helpers.c index 04b0510be..9244d1fb5 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: -- cgit v1.2.1