Closed Amplifiyer closed 10 hours ago
Latest commit: 0b3581d59e709a5a7551daac1d4be968cd743119
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Problem
Sometimes CDK CLI prints a massive uglified code on the stderr when an error happens. This may mask the actual error message to be shown to customers.
Issue number, if available:
Changes
Truncate and keep the later part of the error message.
Corresponding docs PR, if applicable:
Validation
Tested manually. I couldn't figure out a clean way to mock execa child process to be able to test this.
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.