Skip to content

Conversation

@ro0gr
Copy link
Contributor

@ro0gr ro0gr commented Nov 22, 2024

This tries to solve the #582.

I'm not really sure if it makes the feedback noticeably better. But I think with this kind of message I might have noticed my configuration issue earlier.

I'd say it's still missing highlighting the unavailable keyword with an error color, cause this kind of error is probably caused by the misconfiguration on the user side, and it makes sense to make it as clear as possible. WDYT?

@github-actions github-actions bot requested a review from stevearc November 22, 2024 15:39
@stevearc
Copy link
Owner

This change LGTM. Did you want me to merge or did you want to try to change the highlighting?

@ro0gr ro0gr changed the title improve error message for unknown formatters [Wip] improve error message for unknown formatters Nov 22, 2024
@ro0gr
Copy link
Contributor Author

ro0gr commented Nov 22, 2024

Thanks. Yeah, I'll give a try to highlighting improvements.

- use `error` instead of `unavailable` message type in case of
  initialization error

- highlight with error color
@ro0gr ro0gr force-pushed the unknown-formatter-message branch from 88255aa to ab08da9 Compare November 22, 2024 23:39
@ro0gr ro0gr changed the title [Wip] improve error message for unknown formatters improve error message for unknown formatters Nov 22, 2024
@ro0gr
Copy link
Contributor Author

ro0gr commented Nov 22, 2024

It's ready for review now

@stevearc
Copy link
Owner

LGTM thanks for the PR!

@stevearc stevearc merged commit 19c7ba1 into stevearc:master Nov 24, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants