Closed sobolk closed 3 weeks ago
When overrides building fails. The root cause is eaten. Which makes troubleshooting impossible. This PR includes root cause in Amplify error. Similarly to this https://github.com/aws-amplify/amplify-cli/blob/b40e8e86f00b84737dd499ab05e2158b2b4c4315/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts#L125 .
(copied from https://github.com/aws-amplify/amplify-category-api/pull/3004 , targeting correct branch)
yarn test
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes
When overrides building fails. The root cause is eaten. Which makes troubleshooting impossible. This PR includes root cause in Amplify error. Similarly to this https://github.com/aws-amplify/amplify-cli/blob/b40e8e86f00b84737dd499ab05e2158b2b4c4315/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts#L125 .
(copied from https://github.com/aws-amplify/amplify-category-api/pull/3004 , targeting correct branch)
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.