Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Omit numbering of errors if there's only one #138

Open
ivan-aksamentov opened this issue Oct 12, 2023 · 2 comments
Open

Omit numbering of errors if there's only one #138

ivan-aksamentov opened this issue Oct 12, 2023 · 2 comments

Comments

@ivan-aksamentov
Copy link

Currently the numbering of the list of errors is shown even if there is only one error:

Error:
   0: There is only one error

Location:
...

I propose to remove the numbering in this case, because some of our users are confused by this 0: somehow. Some think that it's an erroneous file name or even line number (i.e. if a file parsing error is reported) or an error code.

The numbering of the error messages is not something that's common in other CLI frameworks.

@ten3roberts
Copy link
Contributor

Would you also like if we made the error numbering configurable too, such that it can be entirely removed or replaced with a dash-style list?

- Error message
- Other error message

@monkeydom
Copy link

+1 here. I'd like to use color-eyre in user facing tools. However, the great dev features don't provide for a good user experience where I would like it to just show the first error and all sections and suggestions. Happy to whip up a patch here if it is appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants