More error to toast migration

This commit is contained in:
LukeGus
2025-09-09 18:49:57 -05:00
parent 7ffeb51571
commit 56a1dd0b79
6 changed files with 26 additions and 13 deletions

View File

@@ -127,6 +127,9 @@ export function FileManager({onSelectView, embedded = false, initialHost = null}
type: 'directory'
})));
} catch (err: any) {
console.error('Failed to fetch home data:', err);
const {toast} = await import('sonner');
toast.error(t('fileManager.failedToFetchHomeData'));
}
}