Skip to content

Commit

Permalink
Add offending type name to AbstractRepositoryMetadata verification …
Browse files Browse the repository at this point in the history
…exception message.

Closes #3091
  • Loading branch information
kgignatyev authored and mp911de committed Jun 10, 2024
1 parent 0a603f2 commit b822c5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
* @author Thomas Darimont
* @author Jens Schauder
* @author Mark Paluch
* @author Konstntin Ignatyev
*/
public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {

Expand All @@ -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);
Expand Down

0 comments on commit b822c5f

Please sign in to comment.