Skip to content

Commit 2877f4c

Browse files
authored
chore(cli): refactor command throws error on failure (#737)
Follow up to #631. #631 (comment) an exit code of 1 should not map to an event failure, so the refactor command is incorrectly implemented. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent edef43c commit 2877f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/cli/cdk-toolkit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ export class CdkToolkit {
12801280
});
12811281
} catch (e) {
12821282
await this.ioHost.asIoHelper().defaults.error((e as Error).message);
1283-
return 1;
1283+
throw e;
12841284
}
12851285

12861286
return 0;

0 commit comments

Comments
 (0)