Skip to content

Commit 2a9d4ae

Browse files
committed
Server:优化join解析异常的路径提示
1 parent 338124b commit 2a9d4ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSON-Java-Server/APIJSONLibrary/src/main/java/zuo/biao/apijson/server/AbstractParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,14 +795,14 @@ private List<Join> onJoinParse(String join, JSONObject request) throws Exception
795795
tableObj = request.getJSONObject(tableKey);
796796
targetPath = tableObj == null ? null : tableObj.getString(key);
797797
if (StringUtil.isEmpty(targetPath, true)) {
798-
throw new IllegalArgumentException(tableKey + "." + key + ":value 中value必须为引用赋值的路径 '/targetTable/targetKey' !");
798+
throw new IllegalArgumentException("/" + path + ":value 中value必须为引用赋值的路径 '/targetTable/targetKey' !");
799799
}
800800

801801
//取出引用赋值路径targetPath对应的Table和key
802802
index = targetPath.lastIndexOf("/");
803803
targetKey = index < 0 ? null : targetPath.substring(index + 1);
804804
if (StringUtil.isEmpty(targetKey, true)) {
805-
throw new IllegalArgumentException(tableKey + "." + key + ":'/targetTable/targetKey' 中targetKey不能为空!");
805+
throw new IllegalArgumentException("/" + path + ":'/targetTable/targetKey' 中targetKey不能为空!");
806806
}
807807

808808
targetPath = targetPath.substring(0, index);

0 commit comments

Comments
 (0)