Skip to content
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

fix(cli): [object Object] in error message when CcApiContextProviderPlugin listResources throws #168

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

Tietew
Copy link
Contributor

@Tietew Tietew commented Feb 28, 2025

Interporating propertyMatch directly in error message causes [object Object] representation because it's an object.
This PR wraps it in JSON.stringify() to fix the message correctly.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.00%. Comparing base (8a73428) to head (d084ed6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
+ Coverage   84.78%   85.00%   +0.22%     
==========================================
  Files         204      204              
  Lines       35647    35647              
  Branches     4606     4627      +21     
==========================================
+ Hits        30222    30301      +79     
+ Misses       5272     5195      -77     
+ Partials      153      151       -2     
Flag Coverage Δ
suite.unit 85.00% <100.00%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrgrain
Copy link
Contributor

mrgrain commented Feb 28, 2025

@Tietew thanks for the fix! The integ test failure seems unrelated. I'll take care of this. Please don't sync the branch with main as this resets test results.

@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Feb 28, 2025
@mrgrain
Copy link
Contributor

mrgrain commented Feb 28, 2025

Integ tests are partly blocked at the moment. I'm happy enough this works though.

@mrgrain mrgrain closed this Feb 28, 2025
auto-merge was automatically disabled February 28, 2025 11:41

Pull request was closed

@mrgrain mrgrain reopened this Feb 28, 2025
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Feb 28, 2025
Merged via the queue into aws:main with commit c913ff1 Feb 28, 2025
24 of 25 checks passed
@Tietew Tietew deleted the cc-api-fix branch February 28, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/exempt-integ-test Skips the integ test steps if set.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants