Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify errors description is not printed in create amplify flows #1991

Open
ShadowCat567 opened this issue Sep 11, 2024 · 0 comments
Open
Labels
bug Something isn't working tech-debt Refactors, unsavory workarounds or other technical decisions that should be revisited later

Comments

@ShadowCat567
Copy link
Contributor

ShadowCat567 commented Sep 11, 2024

Describe the bug

Amplify errors description is not printed in create-amplify flows -- anything in options for Amplify Errors is not printed by create-amplify flows.
See these areas of code for more context:

printer.log(format.error(err), LogLevel.ERROR);

const message = red(`${error.name}: ${error.message}`);
if (error.cause) {
return message + os.EOL + this.error(error.cause);
}
return message;

Additional example:
throw new AmplifyUserError('ProjectDirectoryCreateError', {

Reproduction steps

See changes to create-amplify in this PR: #1986 -- fails create-amplify e2e tests because of the change from Error to AmplifyUserError

@ShadowCat567 ShadowCat567 added the pending-triage Incoming issues that need categorization label Sep 11, 2024
@sobolk sobolk added the bug Something isn't working label Sep 11, 2024
@ykethan ykethan added tech-debt Refactors, unsavory workarounds or other technical decisions that should be revisited later and removed pending-triage Incoming issues that need categorization labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tech-debt Refactors, unsavory workarounds or other technical decisions that should be revisited later
Projects
None yet
Development

No branches or pull requests

3 participants