DeepLX/service
Bonny Lin 3f099d187c
fix(service): return 500 instead of crashing on translation error (#224)
The /translate, /v1/translate and /v2/translate handlers called log.Fatalf when TranslateByDeepLX returned an error. log.Fatalf calls os.Exit, so a single failed translation would tear down the whole server process. Return a 500 JSON response and keep serving instead.
2026-05-31 03:47:09 -07:00
..
config.go refactor: make service exportable (#183) 2025-04-08 13:53:20 -04:00
service.go fix(service): return 500 instead of crashing on translation error (#224) 2026-05-31 03:47:09 -07:00