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

Better error message when cannot select demo or pro profile #3

Open
andreacalia opened this issue Sep 16, 2022 · 0 comments
Open

Better error message when cannot select demo or pro profile #3

andreacalia opened this issue Sep 16, 2022 · 0 comments

Comments

@andreacalia
Copy link
Member

andreacalia commented Sep 16, 2022

At the moment, the code looks for profiles that contain "pro" and "demo" in the (sub)name to determine which one to select by default (depending on the configuration).
When multiple profiles are found it cannot choose and it throws. E.g. it cannot choose which one to select when the following are present: lsa.demo, lsa.demo-first-bunch.

Proposals:

  1. Sort the found profiles by name and select by default the first one
  2. Still throw but with the multiple profile names in the error message so they are easy to identify in the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant