diff options
| author | Ruslan Mustakov | 2017-08-18 21:17:35 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2017-08-30 18:14:19 +0700 |
| commit | 5ccdeccb6ed6b8480a86b0db36f192526cba1274 (patch) | |
| tree | eafb890997ee985210b66272957aa22ad00df125 /modules/nativescript/nativescript.cpp | |
| parent | 8b9026c05e9982a7bc0c7f52776ad74276b90252 (diff) | |
| download | godot-5ccdeccb6ed6b8480a86b0db36f192526cba1274.tar.gz godot-5ccdeccb6ed6b8480a86b0db36f192526cba1274.tar.zst godot-5ccdeccb6ed6b8480a86b0db36f192526cba1274.zip | |
Diffstat (limited to 'modules/nativescript/nativescript.cpp')
| -rw-r--r-- | modules/nativescript/nativescript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp index 3799ce31f..e14108068 100644 --- a/modules/nativescript/nativescript.cpp +++ b/modules/nativescript/nativescript.cpp @@ -994,6 +994,8 @@ void NativeScriptLanguage::init_library(const Ref<GDNativeLibrary> &lib) { #endif // See if this library was "registered" already. const String &lib_path = lib->get_active_library_path(); + ERR_EXPLAIN(lib->get_name() + " does not have a library for the current platform"); + ERR_FAIL_COND(lib_path.length() == 0); Map<String, Ref<GDNative> >::Element *E = library_gdnatives.find(lib_path); if (!E) { |
