aws-amplify / amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
https://docs.amplify.aws/
Apache License 2.0
89 stars 79 forks source link

fix: include root cause when overrides build fails #3008

Closed sobolk closed 3 weeks ago

sobolk commented 3 weeks ago

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.