From: Antti Villberg Date: Mon, 3 Apr 2017 07:22:35 +0000 (+0300) Subject: Slightly improved diagnostics in ExtendedUris X-Git-Tag: v1.29.0~124 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F392%2F2;p=simantics%2Fplatform.git Slightly improved diagnostics in ExtendedUris refs #7120 Change-Id: I22cde4ac4dbd9c0542316889670925c40918b3bb --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ExtendedUris.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ExtendedUris.java index 3ccdd6918..d62cc1876 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ExtendedUris.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ExtendedUris.java @@ -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);