summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-22 18:09:43 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-22 18:09:43 +0100
commitfff9ef09e221542f69870357033adc63b4a68203 (patch)
tree503caa7d8cce02707be8d977903b6facf6308519
parent18270893abdb19f0ca170c118f8a2847dbd304be (diff)
downloadcurl-bagder/curl-errormsg.tar.gz
curl: improve error message for --head with -Jbagder/curl-errormsg
... 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
-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: