aws_cdk: Annotations do not render if they reference tokens #31786
Labels
@aws-cdk/aws-ssm
Related to AWS Systems Manager
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
If we add an annotation via
aws_cdk.Annotations.of(x).add_error(...)
where the error message is an f-string contain a token, then it does not print out the error message properly.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
It should at least try to print the actual message.
Current Behavior
It prints
[object Object]
.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.161.0
Framework Version
No response
Node.js Version
v22.9.0
OS
Alpine 3.20.3
Language
Python
Language Version
3.12.7
Other information
No response
The text was updated successfully, but these errors were encountered: