-
-
Notifications
You must be signed in to change notification settings - Fork 126
Description
Description :
The application currently swallows unexpected system errors across multiple core services (parser.service.ts,editor.service.tsx, etc.). When an internal exception occurs (e.g., parser crash, storage failure, conversion error), the error is caught but not surfaced to the user. The UI shows a generic "Invalid document" state, leading to Bad user experience as Diagnostic Pannel shows no errors (means there is no error from user input) but preview pannel shows error.
How to Reproduce
1)Open apps/studio/src/services/parser.service.ts (or editor.service.tsx).
2) Modify a method having try-catch block to manually throw error : by copying throw new Error("Simulated System Crash"); on very first line in try block

3) Open studio website and refresh
4) Observe that no Error Toast, Modal, or specific Alert appears. The user receives no feedback that the Invalid Document Error message is from Internal System Error and not from user side.

Expected behavior
Expected a small toast message at UI conveying user that error is from internal system.
Fix :
Adding a toast message inside src/services/parser.service.ts , src/services/editor.service.tsx , src/services/converter.service.ts, src/services/format.service.ts
Once this issue is approved ,I would be happy to fix this and open a PR ! Thanks!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status