Skip to content

Commit 1f1c6b0

Browse files
authored
Merge pull request #359 from apache/JCR-5249
JCR-5249 : added broken prefix to exception message
2 parents 9f8ce33 + b5b50b5 commit 1f1c6b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/namespace/SessionNamespaceResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public String getPrefix(String uri) throws NamespaceException {
4747
return session.getNamespacePrefix(uri);
4848
} catch (RepositoryException e) {
4949
// should never get here...
50-
throw new NamespaceException("internal error: failed to resolve namespace uri", e);
50+
throw new NamespaceException("internal error: failed to resolve namespace uri: '" + uri + "'", e);
5151
}
5252
}
5353

@@ -59,7 +59,7 @@ public String getURI(String prefix) throws NamespaceException {
5959
return session.getNamespaceURI(prefix);
6060
} catch (RepositoryException e) {
6161
// should never get here...
62-
throw new NamespaceException("internal error: failed to resolve namespace prefix", e);
62+
throw new NamespaceException("internal error: failed to resolve namespace prefix: '" + prefix + "'", e);
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)