Skip to content

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

Open
@ShadowCat567

Description

@ShadowCat567

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtech-debtRefactors, unsavory workarounds or other technical decisions that should be revisited later

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions