nicolium: improve error message

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 20:56:46 +01:00
parent 3b9cb60084
commit 83dc03ef37

View File

@ -72,7 +72,7 @@ const loadFrontendConfig = () => async (dispatch: AppDispatch, getState: () => R
const fetchPlFeJson = (host: string | null) => (dispatch: AppDispatch) =>
staticFetch('/instance/pl-fe.json')
.then(({ json: data }) => {
if (!isObject(data)) throw 'pl-fe.json failed';
if (!isObject(data)) throw 'pl-fe.json fetch failed';
dispatch(importFrontendConfig(data, host));
return data;
})