From 4cecfec0b71ce63110d029d0be81030c29d701dd Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sat, 24 May 2025 23:52:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(frontend)=20correct=20misleading?= =?UTF-8?q?=20error=20message=20for=20config=20fetch=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update APIError message that incorrectly mentioned document when configuration fetching fails. --- src/frontend/apps/impress/src/core/config/api/useConfig.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/apps/impress/src/core/config/api/useConfig.tsx b/src/frontend/apps/impress/src/core/config/api/useConfig.tsx index fdfe8c97..b245d1b9 100644 --- a/src/frontend/apps/impress/src/core/config/api/useConfig.tsx +++ b/src/frontend/apps/impress/src/core/config/api/useConfig.tsx @@ -38,7 +38,10 @@ export const getConfig = async (): Promise => { const response = await fetchAPI(`config/`); if (!response.ok) { - throw new APIError('Failed to get the doc', await errorCauses(response)); + throw new APIError( + 'Failed to get the configurations', + await errorCauses(response), + ); } const config = response.json() as Promise;