fix(server): translate daily password errors to chinese

This commit is contained in:
siujamo committed 2026-09-10 17:55:45 +08:00
1 parent 8700555ae6
commit a17131b62e
1 file changed
+2 -2
@@ -73,11 +73,11 @@ public class DailyPasswordManager {
.body(DailyPasswordResponse.class); .body(DailyPasswordResponse.class);
} catch (Exception e) { } catch (Exception e) {
// Catch network errors, timeouts, or 4xx/5xx responses from the upstream service // Catch network errors, timeouts, or 4xx/5xx responses from the upstream service
throw new ResponseStatusException(HttpStatus.BAD_GATEWAY, "Failed to connect to the upstream service.", e); throw new ResponseStatusException(HttpStatus.BAD_GATEWAY, "无法获取每日密码数据。", e);
} }
if (Objects.isNull(response)) { if (Objects.isNull(response)) {
throw new ResponseStatusException(HttpStatus.BAD_GATEWAY, "No daily password data available."); throw new ResponseStatusException(HttpStatus.BAD_GATEWAY, "无法获取每日密码数据。");
} }
return response; return response;