Skip to content

[bug] error message is confusing if score file not included in score-compose generate #287

@chris-stephenson

Description

@chris-stephenson

Describe the bug
The error message when running score-compose generate is misleading. It states:

Error: the project is empty, please provide a score file to generate fro

This is confusing because this only happens the first time your run score-compose generate. The user probably does not know about "projects" or that there is a project missing.

To Reproduce
Steps to reproduce the behavior:
In a new directory run:

  1. score-compose init
  2. score-compose generate
    Error message will include:
Error: the project is empty, please provide a score file to generate from

Expected behavior
The error should describe more clearly what needs to be done:

Please specify a score file for the first time

Or maybe even better: if there is a file called score.yaml in the current directory - ask if this score file should be used.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcontribfestBacklog of the ContribFest at KubeCongoPull requests that update Go codegood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions