mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 14:25:23 +02:00
Show specific critical error message
This commit is contained in:
+2
-2
@@ -358,9 +358,9 @@ export default function App() {
|
|||||||
} else {
|
} else {
|
||||||
setAppState(prev => ({ ...prev, hasUnsavedChanges: false }));
|
setAppState(prev => ({ ...prev, hasUnsavedChanges: false }));
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
console.error('[handleSaveAll] Critical error:', err);
|
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 {
|
} finally {
|
||||||
setIsSavingAll(false);
|
setIsSavingAll(false);
|
||||||
console.log('[handleSaveAll] isSavingAll set to false');
|
console.log('[handleSaveAll] isSavingAll set to false');
|
||||||
|
|||||||
Reference in New Issue
Block a user