]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java
Don't report ResourceNotFoundExceptions when looking for browse context
[simantics/platform.git] / bundles / org.simantics.browsing.ui.graph.impl / src / org / simantics / browsing / ui / graph / impl / Evaluators.java
index e86cdc54703559214895694478c386a6cf80e9f3..da872193fab6b538dc6e06183a371bde75c121b5 100644 (file)
@@ -296,8 +296,10 @@ public class Evaluators {
                     for(String browseContext : browseContexts) {
                         try {
                             browseContextResources.add(graph.getResource(browseContext));
+                        } catch(ResourceNotFoundException e) {
+                            // Expected result, if the browse context is not modelled.
                         } catch(DatabaseException e) {
-                            LOGGER.error("Didn't find " + browseContext + " while loading model browser.", e);
+                            LOGGER.error("Unexpected error occurred while finding browse context " + browseContext + ".", e);
                         }
                     }