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

When an uppercase letter is set as the new project name, the application throws a difficult to read error #1195

Open
adrian-lorenzo opened this issue Oct 11, 2022 · 1 comment
Labels
dev-experience Developer Experience difficulty: low good first issue Good for newcomers package:cli Affects the CLI package priority: low size: S Tasks that involve two or three lines of code

Comments

@adrian-lorenzo
Copy link
Collaborator

adrian-lorenzo commented Oct 11, 2022

Bug Report

Current Behavior

If we create a project and set a name with uppercase letters, like with the following command:

We obtain the following output that includes a trace:

computer@someoneComputer projects % boost new:project UppercaseApplication
UppercaseApplication: Project name cannot contain uppercase letters:

    Found: 'UppercaseApplication'
    at assertNameIsCorrect (/.nvm/versions/node/v16.17.0/lib/node_modules/@boostercloud/cli/dist/services/provider-service.js:16:15)
    at Project.run (/.nvm/versions/node/v16.17.0/lib/node_modules/@boostercloud/cli/dist/commands/new/project.js:18:56)
    at Project._run (/.nvm/versions/node/v16.17.0/lib/node_modules/@boostercloud/cli/node_modules/@oclif/command/lib/command.js:43:31) {
  restrictionText: 'contain uppercase letters'
}

Expected behavior

To obtain a human readable message, without a trace.

Error ⚠️: Your Booster project name cannot contain uppercase letters. You choose "UppercaseApplication"

Environment

  • Booster version: 0.30.7
@adrian-lorenzo adrian-lorenzo added good first issue Good for newcomers size: S Tasks that involve two or three lines of code package:cli Affects the CLI package dev-experience Developer Experience difficulty: low priority: low labels Oct 11, 2022
@fseda
Copy link

fseda commented Jul 12, 2023

Is this issue open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-experience Developer Experience difficulty: low good first issue Good for newcomers package:cli Affects the CLI package priority: low size: S Tasks that involve two or three lines of code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants