🩹(frontend) correct misleading error message for config fetch failure

Update APIError message that incorrectly mentioned document when
configuration fetching fails.
This commit is contained in:
lebaudantoine
2025-05-25 00:10:20 +02:00
parent ec663b601f
commit 4cecfec0b7
@@ -38,7 +38,10 @@ export const getConfig = async (): Promise<ConfigResponse> => {
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<ConfigResponse>;