-
Notifications
You must be signed in to change notification settings - Fork 70
feat(toolkit-lib): wrap errors from assembly builder into AssemblyError #200
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
| const TOOLKIT_ERROR_SYMBOL = Symbol.for('@aws-cdk/toolkit-lib.ToolkitError'); | ||
| const AUTHENTICATION_ERROR_SYMBOL = Symbol.for('@aws-cdk/toolkit-lib.AuthenticationError'); | ||
| const ASSEMBLY_ERROR_SYMBOL = Symbol.for('@aws-cdk/toolkit-lib.AssemblyError'); | ||
| const CONTEXT_PROVIDER_ERROR_SYMBOL = Symbol.for('@aws-cdk/toolkit-lib.ContextProviderError'); |
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.
Missed these in the rename. They are private symbols, so it's fine.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #200 +/- ##
==========================================
+ Coverage 85.07% 85.12% +0.04%
==========================================
Files 207 207
Lines 35706 35760 +54
Branches 4629 4632 +3
==========================================
+ Hits 30378 30440 +62
+ Misses 5171 5167 -4
+ Partials 157 153 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6965b21 to
580e8af
Compare
packages/@aws-cdk/tmp-toolkit-helpers/test/api/toolkit-error.test.ts
Outdated
Show resolved
Hide resolved
580e8af to
34dd191
Compare
kaizencc
left a comment
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.
youve addressed eli's comments and its late for him so im just going to approve
…or (#200) Fixes errors thrown from a CloudAssembly produced by a builder function are unstructured. Wrapping errors will allow better handling by implementors. Also introduced the `source` property on `ToolkitError`s as per the RFC, to denote the source of an error (user or toolkit). --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
Fixes errors thrown from a CloudAssembly produced by a builder function are unstructured. Wrapping errors will allow better handling by implementors.
Also introduced the
sourceproperty onToolkitErrors as per the RFC, to denote the source of an error (user or toolkit).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license