This addresses unhandled promise rejections that were being logged as "Non-Error capture"
entries in Sentry. The root cause was services rejecting promises with plain objects,
strings, or undefined values instead of proper Error objects.
Changes:
- CompilerService: Reject with Error objects instead of plain objects in handleRequestError()
- Sentry: Defensive handling of non-Error rejection reasons in unhandledrejection listener
- MultifileService: Convert string rejections to Error objects
- SharingService: Convert undefined rejections to Error objects with descriptive messages
- TreePane: Convert undefined rejections to Error objects for user cancellations
- CfgView: Convert null rejections to Error objects for canvas blob failures
This ensures all promise rejections use proper Error objects, providing better stack traces
and preventing Sentry from categorizing them as "Non-Error capture" events.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>