From 8759ca61e79b4ce80de2f8e166d06cb5f4c29761 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 08:26:02 +0000 Subject: [PATCH 1/3] chore(main): release 2.5.0 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c08f05..44d885d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.5.0](https://github.com/nguyenvanduocit/epubtrans/compare/v2.4.0...v2.5.0) (2024-08-13) + + +### Features + +* **translator:** improve translation process and error handling ([3f0fd66](https://github.com/nguyenvanduocit/epubtrans/commit/3f0fd66fcc5f1f1a8c8ab83939935aad935fdf6a)) + ## [2.4.0](https://github.com/nguyenvanduocit/epubtrans/compare/v2.3.1...v2.4.0) (2024-08-12) From 0a292f985763eff2f759521f7b55082fb290e6d4 Mon Sep 17 00:00:00 2001 From: Duoc Nguyen Date: Tue, 13 Aug 2024 20:47:14 +0700 Subject: [PATCH 2/3] fix: update error message --- cmd/translate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/translate.go b/cmd/translate.go index 0e5e485..9405227 100644 --- a/cmd/translate.go +++ b/cmd/translate.go @@ -247,6 +247,7 @@ func retryTranslate(ctx context.Context, t translator.Translator, limiter *rate. // For rate limit errors, wait longer before retrying time.Sleep(calculateBackoff(attempt, baseDelay*10)) } else { + fmt.Println("Translationg error: ", err) // For other errors, use normal backoff time.Sleep(calculateBackoff(attempt, baseDelay)) } From d4a9f41f43219ec3a0f80e2e5ff5642ae482f244 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:47:34 +0000 Subject: [PATCH 3/3] chore(main): release 2.5.1 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44d885d..c84c9f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.5.1](https://github.com/nguyenvanduocit/epubtrans/compare/v2.5.0...v2.5.1) (2024-08-13) + + +### Bug Fixes + +* update error message ([0a292f9](https://github.com/nguyenvanduocit/epubtrans/commit/0a292f985763eff2f759521f7b55082fb290e6d4)) + ## [2.5.0](https://github.com/nguyenvanduocit/epubtrans/compare/v2.4.0...v2.5.0) (2024-08-13)