mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 00:12:04 -06:00
improve error messages
This commit is contained in:
parent
64da6df3e8
commit
3a90c0512c
@ -110,7 +110,8 @@ public class Annotators {
|
||||
if (!type.isAnnotationPresent(Service.class)) {
|
||||
throw new RuntimeException(
|
||||
"Annotator services must be annotated with distinct selectors\n" +
|
||||
"such as @Service(Annotator.class,selector=\"myimpl42\")"
|
||||
"such as @Service(Annotator.class,selector=\"myimpl42\")" +
|
||||
" but " + provider.type().getCanonicalName() + " had none."
|
||||
);
|
||||
}
|
||||
Service service = type.getAnnotation(Service.class);
|
||||
|
Loading…
Reference in New Issue
Block a user