Skip to content

Commit b822c5f

Browse files
kgignatyevmp911de
authored andcommitted
Add offending type name to AbstractRepositoryMetadata verification exception message.
Closes #3091
1 parent 0a603f2 commit b822c5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* @author Thomas Darimont
4242
* @author Jens Schauder
4343
* @author Mark Paluch
44+
* @author Konstntin Ignatyev
4445
*/
4546
public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
4647

@@ -56,7 +57,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
5657
public AbstractRepositoryMetadata(Class<?> repositoryInterface) {
5758

5859
Assert.notNull(repositoryInterface, "Given type must not be null");
59-
Assert.isTrue(repositoryInterface.isInterface(), "Given type must be an interface");
60+
Assert.isTrue(repositoryInterface.isInterface(), "Given type ["+ repositoryInterface.getName()+"] must be an interface");
6061

6162
this.repositoryInterface = repositoryInterface;
6263
this.typeInformation = TypeInformation.of(repositoryInterface);

0 commit comments

Comments
 (0)