Skip to content

Commit

Permalink
fix(diff):this.node.addError does not cause cdk diff to fail aws#4700
Browse files Browse the repository at this point in the history
Adding in appStacks.processMetadata(stacks); command into the diff method so that metadata is process correctly and the diff should fail
  • Loading branch information
Matt C committed Dec 3, 2019
1 parent 1dcba75 commit 84b612c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/aws-cdk/lib/cdk-toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export class CdkToolkit {
defaultBehavior: DefaultSelection.AllStacks
});

this.appStacks.processMetadata(stacks);

const strict = !!options.strict;
const contextLines = options.contextLines || 3;
const stream = options.stream || process.stderr;
Expand Down

0 comments on commit 84b612c

Please sign in to comment.