]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Slightly improved diagnostics in ExtendedUris 92/392/2
authorAntti Villberg <antti.villberg@semantum.fi>
Mon, 3 Apr 2017 07:22:35 +0000 (10:22 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 3 Apr 2017 09:42:27 +0000 (12:42 +0300)
refs #7120

Change-Id: I22cde4ac4dbd9c0542316889670925c40918b3bb

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ExtendedUris.java

index 3ccdd691854cc3bd2b961a1b1009fb4180dfa631..d62cc1876d6be1b4d98ba1391e676333383234f6 100644 (file)
@@ -36,7 +36,7 @@ public class ExtendedUris {
                 String name = URIStringUtils.unescape(escapedName);
                 parent = graph.syncRequest(new UnescapedChildMapOfResource(parent)).get(name);
                 if(parent == null)
-                    throw new DatabaseException("Didn't find a child " + name);
+                    throw new DatabaseException("Didn't find a child " + name + " for " + uri.substring(0, beginPos));
             }
             else if(c == '#') {
                 String escapedName = uri.substring(beginPos+1, endPos);