Polishing.

See #4061
Original pull request: #4062.
This commit is contained in:
Mark Paluch
2022-09-16 14:51:48 +02:00
parent 018fe623c0
commit 26554e3031

View File

@@ -139,9 +139,12 @@ class EntityOperations {
}
MongoPersistentEntity<?> persistentEntity = context.getPersistentEntity(entityClass);
if(persistentEntity == null) {
throw new MappingException(String.format("Collection name cannot be derived for type %s. Is it a store native type?", entityClass));
if (persistentEntity == null) {
throw new MappingException(String.format(
"Cannot determine collection name from type '%s'. Is it a store native type?", entityClass.getName()));
}
return persistentEntity.getCollection();
}