diff --git a/nginx-unified.conf b/nginx-unified.conf index 9af225d..55e3272 100644 --- a/nginx-unified.conf +++ b/nginx-unified.conf @@ -76,7 +76,7 @@ server { } # Proxy other API endpoints to backend - location ~ ^/(playlife-feed|d2dc349a-0d13-49b2-a8f0-1ab094bfba9b|projects|message/post|weekly_goals/setup|project_score_sample_mv/refresh)$ { + location ~ ^/(playlife-feed|d2dc349a-0d13-49b2-a8f0-1ab094bfba9b|projects|message/post|weekly_goals/setup|project_score_sample_mv/refresh|priorities/confirm)$ { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/play-life-web/src/components/ProjectPriorityManager.jsx b/play-life-web/src/components/ProjectPriorityManager.jsx index 7d4afaa..3df690b 100644 --- a/play-life-web/src/components/ProjectPriorityManager.jsx +++ b/play-life-web/src/components/ProjectPriorityManager.jsx @@ -623,7 +623,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad, body: JSON.stringify(changes), }) if (!response.ok) { - throw new Error('Ошибка сохранения') + const errText = await response.text().catch(() => '') + throw new Error(`Ошибка сохранения (${response.status})${errText ? ': ' + errText : ''}`) } if (onConfirmed) onConfirmed() } catch (e) {