From bdd15cbd330c6918f13a338695e19bb6bf9f717a Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Fri, 10 Apr 2026 12:16:06 +0200 Subject: [PATCH] Show specific critical error message --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 80b1348..7b98976 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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');