mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 12:44:31 +00:00
Improve error message from JavaClassWrapper.wrap()
This commit is contained in:
parent
1753893c60
commit
554aa6ad95
1 changed files with 1 additions and 1 deletions
|
|
@ -1234,7 +1234,7 @@ Ref<JavaClass> JavaClassWrapper::_wrap(const String &p_class, bool p_allow_priva
|
|||
ERR_FAIL_NULL_V(env, Ref<JavaClass>());
|
||||
|
||||
jclass bclass = env->FindClass(class_name_dots.replace(".", "/").utf8().get_data());
|
||||
ERR_FAIL_NULL_V(bclass, Ref<JavaClass>());
|
||||
ERR_FAIL_NULL_V_MSG(bclass, Ref<JavaClass>(), vformat("Java class '%s' not found.", p_class));
|
||||
|
||||
jobjectArray constructors = (jobjectArray)env->CallObjectMethod(bclass, Class_getDeclaredConstructors);
|
||||
ERR_FAIL_NULL_V(constructors, Ref<JavaClass>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue