From 343836df6b9927242b4426fb5e6068962df3a7d2 Mon Sep 17 00:00:00 2001 From: Kharec Date: Thu, 15 Oct 2026 17:54:56 +0200 Subject: [PATCH] fix: build the stalled-download message from the timeout The message hard-coded "30 seconds" next to the stallTimeout constant: change one and the other lied. --- translation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translation.go b/translation.go index 518cf51..4004ac4 100644 --- a/translation.go +++ b/translation.go @@ -35,7 +35,7 @@ const ( ) // errStalled aborts a download that receives nothing for stallTimeout. -var errStalled = errors.New("the download stalled (no data received for 30 seconds)") +var errStalled = fmt.Errorf("the download stalled (no data received for %s)", stallTimeout) var modelFiles = []marian.RemoteFile{ {Name: "config.json", Size: 1416, SHA256: "b3be13d046d9899d7aab8cf4ed624d9a79f5776038ba793f6b4d2ce3e02192f7"},