]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsImpl.java
Removed contact application support prints
[simantics/platform.git] / bundles / org.simantics.db.indexing / src / org / simantics / db / indexing / IndexedRelationsImpl.java
index 390c0d17fce817225bde69d07e4515408fee4229..60e824cad0bf4f84592e25dbeda6b0a1b4939112 100644 (file)
@@ -174,9 +174,8 @@ public class IndexedRelationsImpl implements IndexedRelations {
                // 3. something was wrong, but the index has been successfully cleaned
        }
 
-               if(!searcher.checkState(State.NONE)) 
-                       throw new IndexException("Illegal searcher state, contact application support.");
-       
+       searcher.assertState(State.NONE);
+
         // We loop until the index is loaded
         while(true) {
                
@@ -240,7 +239,7 @@ public class IndexedRelationsImpl implements IndexedRelations {
                                                                if(!loaded) {
                                                                        
                                                                if(!searcher.checkState(State.NONE)) 
-                                                                       throw new DatabaseException("Illegal searcher state, contact application support.");                                                            
+                                                                       throw new DatabaseException("Illegal searcher state " + searcher.state());
 
                                                                        try {
                                                                            SerialisationSupport ss = graph.getService(SerialisationSupport.class);
@@ -273,7 +272,7 @@ public class IndexedRelationsImpl implements IndexedRelations {
                        }
                        
                        if(!success)
-                               throw new IndexException("Did not manage to load index. Contact application support.");
+                               throw new IndexException("Did not manage to load index.");
                
                // Try again
 
@@ -283,7 +282,7 @@ public class IndexedRelationsImpl implements IndexedRelations {
                        if (searcher.isIndexAvailable()) {
                                searcher.startAccess(progress.newChild(50), processor.getSession(), false);
                                if(searcher.hasAccess(false)) return lock;
-                               throw new IndexException("Illegal searcher state, contact application support.");
+                               throw new IndexException("Illegal searcher state " + searcher.state());
                        }
                        
                }