Show specific critical error message

This commit is contained in:
Christian Vidal Wolf
2026-04-10 12:16:06 +02:00
parent 3c821b83a0
commit bdd15cbd33
+2 -2
View File
@@ -358,9 +358,9 @@ export default function App() {
} else {
setAppState(prev => ({ ...prev, hasUnsavedChanges: false }));
}
} catch (err) {
} catch (err: any) {
console.error('[handleSaveAll] Critical error:', err);
alert('A critical error occurred while saving. Please check your connection and try again.');
alert(`A critical error occurred while saving: ${err.message || err}\nCheck console for details.`);
} finally {
setIsSavingAll(false);
console.log('[handleSaveAll] isSavingAll set to false');