booster icon indicating copy to clipboard operation
booster copied to clipboard

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

Open adrian-lorenzo opened this issue 2 years ago • 1 comments

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 avatar Oct 11 '22 09:10 adrian-lorenzo

Is this issue open?

fseda avatar Jul 12 '23 21:07 fseda