Commit 91a5779
committed
fix: improve app initialization error handling
- Add error dialog to notify users when initialization fails
- Log detailed error information for debugging
- Ensure app exits cleanly on initialization failure
- Prevent app from running in inconsistent state after init errors
This fixes the issue where app.whenReady().catch(console.log) would
silently swallow initialization errors, leaving the app running in a
zombie state with no user feedback.
Changes:
- Import dialog from electron
- Replace console.log with proper error handling
- Show user-friendly error dialog with error details
- Log full error stack trace for debugging
- Call app.quit() to exit cleanly
Severity: Critical (8-9/10)
Impact: Prevents app from running in inconsistent state, improves UX1 parent de90499 commit 91a5779
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
234 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
0 commit comments