🩹(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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user