Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudwatch/lib/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export class Metric implements IMetric {

dimsArray.map(key => {
if (dims[key] === undefined || dims[key] === null) {
throw new cdk.UnscopedValidationError(`Dimension value of '${dims[key]}' is invalid`);
throw new cdk.UnscopedValidationError(`Dimension value of '${dims[key]}' is invalid for key: ${key}`);
}
if (key.length < 1 || key.length > 255) {
throw new cdk.UnscopedValidationError(`Dimension name must be at least 1 and no more than 255 characters; received ${key}`);
Expand Down
Loading