Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(diagnostic): error on invalid severity value (#15965)
Users can pass string values for severities that match with the enum names (e.g. "Warn" or "Info") which are converted to the corresponding numerical value in `to_severity`. Invalid strings were simply left as-is, which caused confusing errors later on. Instead, report an invalid severity string right up front to make the problem clear.
- Loading branch information