avoid printing {element} in err message

This commit is contained in:
Gavin 2023-06-09 22:59:14 +02:00
parent e18dde78bf
commit e0d08a5f26
1 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,9 @@ public class BasicSqmPathSource<J>
@Override
public SqmPathSource<?> findSubPathSource(String name) {
throw new TerminalPathException( "Path '" + pathModel.getPathName()
+ "' has no attribute '" + name + "'" );
String path = pathModel.getPathName();
String pathDesc = path==null || path.startsWith("{") ? " " : " '" + pathModel.getPathName() + "' ";
throw new TerminalPathException( "Terminal path" + pathDesc + "has no attribute '" + name + "'" );
}
@Override