-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve unknown annotation trait errors
When an annotation trait isn't defined in the model but SPI can be found for it, the error message is about providing a null value for an AnnotationTrait when an object is expected, and that's confusing. This change addresses this by assuming that an unknown annotation trait is an object since that is the most common case (and because annotation traits can never be null). This doesn't end up resulting in a clean model validation result, but it gives better error messages about the trait not being defined.
- Loading branch information
Showing
2 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters