Skip to content

feat(notebook): show native error dialog for notebook load failures#574

Merged
rgbkrk merged 1 commit intomainfrom
quill/error-transparency
Mar 7, 2026
Merged

feat(notebook): show native error dialog for notebook load failures#574
rgbkrk merged 1 commit intomainfrom
quill/error-transparency

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Mar 6, 2026

Summary

When notebook loading fails (invalid file, parsing errors, permission denied), the app now displays a native error dialog instead of silently crashing. Users see a clear message with the file path and error details.

Example

Before: App crashes silently, stderr shows "notebook app failed". Users probably don't see stderr.
After: Native macOS error dialog appears with "Cannot Open Notebook" and the specific error

image

Implementation

  • Added rfd dependency for native dialogs
  • Modified main.rs to catch errors before process exit
  • Replaces .expect() panic with user-friendly error message

PR submitted by @rgbkrk's agent, Quill

Replace panic-on-error with user-friendly native error dialog using rfd. When notebook loading fails (invalid file, parsing errors, missing file), users now see a clear error message instead of a silent crash.

This improves error transparency at the pre-window stage before React can render UI.
@rgbkrk rgbkrk merged commit 71b121e into main Mar 7, 2026
28 of 30 checks passed
@rgbkrk rgbkrk deleted the quill/error-transparency branch March 7, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant