diff --git a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java index ae54f8abe6..11c9131feb 100644 --- a/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java +++ b/src/main/java/org/springframework/data/repository/core/support/AbstractRepositoryMetadata.java @@ -41,6 +41,7 @@ * @author Thomas Darimont * @author Jens Schauder * @author Mark Paluch + * @author Konstntin Ignatyev */ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { @@ -56,7 +57,7 @@ public abstract class AbstractRepositoryMetadata implements RepositoryMetadata { public AbstractRepositoryMetadata(Class repositoryInterface) { Assert.notNull(repositoryInterface, "Given type must not be null"); - Assert.isTrue(repositoryInterface.isInterface(), "Given type must be an interface"); + Assert.isTrue(repositoryInterface.isInterface(), "Given type ["+ repositoryInterface.getName()+"] must be an interface"); this.repositoryInterface = repositoryInterface; this.typeInformation = TypeInformation.of(repositoryInterface);