浏览代码

Made the Name error say which class caused the issue

Jared 5 年前
父节点
当前提交
d9e8ef65ea
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java

+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java 查看文件

@@ -274,7 +274,7 @@ public class JavaNativeModule {
274 274
 				className = className.substring(className.lastIndexOf('.') + 1);
275 275
 			} else if (specifiedName.indexOf('.') >= 0) {
276 276
 				if (!specifiedName.startsWith(pkg.fullName))
277
-					throw new IllegalArgumentException("Specified @Name as " + specifiedName + " but it's not in the module root package");
277
+					throw new IllegalArgumentException("Specified @Name as \"" + specifiedName + "\" for class: \"" + cls.toString() + "\" but it's not in the module root package");
278 278
 
279 279
 				classPkg = getPackage(basePackage + specifiedName.substring(pkg.fullName.length()));
280 280
 				className = className.substring(className.lastIndexOf('.') + 1);

正在加载...
取消
保存