]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/SingleActiveModel.java
Ignore NoSingleResultException in DependenciesRelation
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / request / SingleActiveModel.java
index 411388f7e89c7ff4df1e84a52611acd3acff820b..bff9a22137a80489369f09f144504421f2e7bf5f 100644 (file)
@@ -25,9 +25,9 @@ public class SingleActiveModel extends ResourceRead<Resource> {
             return actives.iterator().next();
 
         if (actives.size() == 0) 
-               throw new NoSingleResultException("There are no active models."); 
+               throw new NoSingleResultException("There are no active models.", actives.size()); 
 
-       throw new NoSingleResultException("There are many active models: " + NameUtils.getSafeName(graph, actives)); 
+       throw new NoSingleResultException("There are many active models: " + NameUtils.getSafeName(graph, actives), actives.size()); 
         
     }