summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-22 18:09:43 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-23 08:43:44 +0100
commitffb6a9e8a6a13c4fdd8df2134f64e377a57e25be (patch)
tree89606c6adfaf3adf09b560a5e0e8ed87493a4acb /src
parentb01165680450364bdc770da3c7ede190872286c8 (diff)
downloadcurl-ffb6a9e8a6a13c4fdd8df2134f64e377a57e25be.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_helpers.c2
1 files changed, 1 insertions, 1 deletions
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: