diff --git a/web/src/hooks.ts b/web/src/hooks.ts index 03b712d06c..39ab06755d 100644 --- a/web/src/hooks.ts +++ b/web/src/hooks.ts @@ -30,7 +30,7 @@ export const handle: Handle = async ({ event, resolve }) => { return response; } catch (error) { - console.log('Error [handle]'); + console.log('Error [handle]', error); return await resolve(event); } }; diff --git a/web/src/lib/stores/assets.ts b/web/src/lib/stores/assets.ts index 80c323cc49..35865b022f 100644 --- a/web/src/lib/stores/assets.ts +++ b/web/src/lib/stores/assets.ts @@ -22,6 +22,10 @@ export const flattenAssetGroupByDate = derived(assetsGroupByDate, ($assetsGroupB }); export const getAssetsInfo = async () => { - const { data } = await api.assetApi.getAllAssets(); - assets.set(data); + try { + const { data } = await api.assetApi.getAllAssets(); + assets.set(data); + } catch (error) { + console.log('Error [getAssetsInfo]'); + } };