improved error logging

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 16:24:11 +02:00
parent d2c36e71be
commit 6fb03530df
6 changed files with 50 additions and 4 deletions
+7
View File
@@ -52,6 +52,13 @@ export const MyLoansPage = () => {
});
if (!res.ok) {
if (res.status === 503) {
setMsgStatus("error");
setMsgTitle(t("serviceDeactivatedHeadline"));
setMsgDescription(t("loan_page_serviceDeactivatedText"));
setIsMsg(true);
return;
}
setMsgStatus("error");
setMsgTitle(t("error"));
setMsgDescription(t("error-fetching-loans"));