Skip to content

Commit 62d6689

Browse files
committed
🩹(frontend) correct misleading error message for config fetch failure
Update APIError message that incorrectly mentioned document when configuration fetching fails.
1 parent 53796bc commit 62d6689

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/frontend/apps/impress/src/core/config/api/useConfig.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export const getConfig = async (): Promise<ConfigResponse> => {
3838
const response = await fetchAPI(`config/`);
3939

4040
if (!response.ok) {
41-
throw new APIError('Failed to get the doc', await errorCauses(response));
41+
throw new APIError(
42+
'Failed to get the configurations',
43+
await errorCauses(response),
44+
);
4245
}
4346

4447
const config = response.json() as Promise<ConfigResponse>;

0 commit comments

Comments
 (0)