summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-31 12:06:26 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-31 12:24:10 +0200
commit465e502f74100f0577ca344d0b58a59c6abe4548 (patch)
tree86ccc057d64cdafd7f2f9ca7cb45a0826e5de920
parentfb7217977f3b0df6ef9ff6ff7f0a157b4f5bb7ef (diff)
i18nerr: Improve timeout error message
-rw-r--r--i18nerr/i18nerr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nerr/i18nerr.go b/i18nerr/i18nerr.go
index f5d96aa..2b808de 100644
--- a/i18nerr/i18nerr.go
+++ b/i18nerr/i18nerr.go
@@ -29,7 +29,7 @@ func TranslatedInner(inner error) (string, bool) {
var tErr *http.TimeoutError
switch {
case errors.As(inner, &tErr):
- return printerOrNew(language.English).Sprintf("timeout reached for URL: '%s' and HTTP method: '%s'", tErr.URL, tErr.Method), false
+ return printerOrNew(language.English).Sprintf("Timeout reached contacting URL: '%s'", tErr.URL), false
case errors.Is(inner, context.Canceled):
return unwrapped.Error(), true
}