summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-05 15:46:55 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-05 15:48:16 +0200
commitc084b6888e6f63843711ab2f2005341a55a7cbed (patch)
treecf216b9282a794cd7e414e0fac747bc097cc26b5
parent879007f8118771f4896334731aaca5850a154675 (diff)
downloadcurl-bagder/retry-wording.tar.gz
curl: in retry output don't call all problems "transient"bagder/retry-wording
... because when --retry-all-errors is used, the error isn't necessarily transient at all.
-rw-r--r--src/tool_operate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 517ad1f62..39200dcd2 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -512,10 +512,10 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
static const char * const m[]={
NULL,
"(retrying all errors)",
- "timeout",
- "connection refused",
- "HTTP error",
- "FTP error"
+ ": timeout",
+ ": connection refused",
+ ": HTTP error",
+ ": FTP error"
};
sleeptime = per->retry_sleep;
@@ -529,7 +529,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
sleeptime = (long)retry_after * 1000; /* milliseconds */
}
}
- warnf(config->global, "Transient problem: %s "
+ warnf(config->global, "Problem %s. "
"Will retry in %ld seconds. "
"%ld retries left.\n",
m[retry], sleeptime/1000L, per->retry_numretries);