From 6a930285fcd8f61255624717d0f7a32dd0aaf931 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Sat, 23 Jul 2011 13:53:51 +0200 Subject: [PATCH] improved error message for index mismatch --- .../data/neo4j/support/GraphDatabaseContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/GraphDatabaseContext.java b/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/GraphDatabaseContext.java index 5c4e4129b..3b942f77b 100644 --- a/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/GraphDatabaseContext.java +++ b/spring-data-neo4j/src/main/java/org/springframework/data/neo4j/support/GraphDatabaseContext.java @@ -73,7 +73,7 @@ public class GraphDatabaseContext { Map config = fullText ? LuceneIndexImplementation.FULLTEXT_CONFIG : null; if (NodeBacked.class.isAssignableFrom(type)) return (Index) getIndexManager().forNodes(indexName, config); if (RelationshipBacked.class.isAssignableFrom(type)) return (Index) getIndexManager().forRelationships(indexName, config); - throw new IllegalArgumentException("Wrong index type supplied: " + type); + throw new IllegalArgumentException("Wrong index type supplied: " + type+" expected Node- or Relationship-Entity"); } /**