fix: enhance error tracking for unhandled exceptions and datasource U…#19
fix: enhance error tracking for unhandled exceptions and datasource U…#19jiashengguo merged 1 commit intodevfrom
Conversation
📝 WalkthroughWalkthroughA patch release (0.2.4) that adds telemetry error tracking to CLI error handlers in index.ts and refines error propagation in zmodel-parser.ts to preserve CliError instances instead of wrapping them. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (2)src/zmodel-parser.ts (1)
src/index.ts (1)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR enhances error tracking for unhandled exceptions and datasource URL evaluation failures. It adds telemetry tracking for CLI errors and unhandled exceptions, and improves the error handling flow when evaluating datasource URLs from schema files.
Changes:
- Added telemetry error tracking for
CliErrorand unhandled exceptions in the CLI error handler - Improved datasource URL evaluation error handling to preserve and re-throw
CliErrorinstances - Bumped package version from 0.2.3 to 0.2.4
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/index.ts | Added telemetry.trackError() calls for CliError and unhandled exceptions to track errors in telemetry |
| src/zmodel-parser.ts | Added check to re-throw CliError instances during datasource URL evaluation to preserve error context |
| package.json | Version bump from 0.2.3 to 0.2.4 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…RL evaluation
Summary by CodeRabbit
Chores
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.