mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
avoid printing {element} in err message
This commit is contained in:
parent
e18dde78bf
commit
e0d08a5f26
@ -44,8 +44,9 @@ public BasicDomainType<J> getSqmPathType() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SqmPathSource<?> findSubPathSource(String name) {
|
public SqmPathSource<?> findSubPathSource(String name) {
|
||||||
throw new TerminalPathException( "Path '" + pathModel.getPathName()
|
String path = pathModel.getPathName();
|
||||||
+ "' has no attribute '" + name + "'" );
|
String pathDesc = path==null || path.startsWith("{") ? " " : " '" + pathModel.getPathName() + "' ";
|
||||||
|
throw new TerminalPathException( "Terminal path" + pathDesc + "has no attribute '" + name + "'" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user