mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
🩹(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:
parent
ec663b601f
commit
4cecfec0b7
1 changed files with 4 additions and 1 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue