-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: throws errors for apps properly #35667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 066588d The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-7.5.0 #35667 +/- ##
==============================================
Coverage 59.64% 59.64%
==============================================
Files 2832 2832
Lines 68934 68934
Branches 15287 15287
==============================================
Hits 41113 41113
Misses 25143 25143
Partials 2678 2678
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a regression issue with error messaging in the creator methods by enhancing error handling in the ModifyCreator class and adding comprehensive tests for various error scenarios.
- Updated error handling in ModifyCreator to differentiate between known and unknown error objects.
- Added tests for getLivechatCreator, getUploadCreator, getEmailCreator, and getContactCreator to verify consistent error throwing behavior.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/apps-engine/deno-runtime/lib/accessors/tests/ModifyCreator.test.ts | Added tests to ensure proper error propagation and handling across various creator methods. |
| packages/apps-engine/deno-runtime/lib/accessors/modify/ModifyCreator.ts | Updated catch blocks in creator methods to handle Error instances and error objects with a message property. |
Comments suppressed due to low confidence (1)
packages/apps-engine/deno-runtime/lib/accessors/modify/ModifyCreator.ts:68
- [nitpick] When the error object lacks a 'message' property, directly wrapping 'err.error' may produce an uninformative default message such as '[object Object]'. Consider providing a more descriptive default error message or a fallback string.
throw new Error(err.error);
Proposed changes (including videos or screenshots)
Issue(s)
CTZ-33
Steps to test or reproduce
Further comments