Skip to content

Commit

Permalink
Adding field name to ExtensionConfigurationException message (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandProDev authored and rnorth committed May 21, 2019
1 parent 24e6f11 commit b75f52c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
* discuss with the authors on an issue ticket prior to doing anything big
* follow the style, naming and structure conventions of the rest of the project
* make commits atomic and easy to merge
* verify all tests are passing. Build the project with `./gradlew check` to do this.
**N.B.** Gradle's Build Cache is enabled by default, but you can add `--no-build-cache` flag to disable it.
* verify all tests are passing. Build the project with `./gradlew check` to do this

**PS:** Make sure Docker is running locally and you have the lombok plugin installed in your IDE

**N.B.** Gradle's Build Cache is enabled by default, but you can add `--no-build-cache` flag to disable it.

Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static Predicate<Field> isContainer() {
boolean isStartable = Startable.class.isAssignableFrom(field.getType());

if (!isStartable) {
throw new ExtensionConfigurationException("Annotation is only supported for Startable types");
throw new ExtensionConfigurationException(String.format("FieldName: %s does not implement Startable", field.getName()));
}
return true;
}
Expand Down

0 comments on commit b75f52c

Please sign in to comment.