Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", "modules/gdnative", "modules/gdscript" directories.
This commit is contained in:
parent
22b42c3315
commit
6ab118c464
24 changed files with 112 additions and 306 deletions
|
|
@ -268,8 +268,7 @@ void GDNative::_bind_methods() {
|
|||
}
|
||||
|
||||
void GDNative::set_library(Ref<GDNativeLibrary> p_library) {
|
||||
ERR_EXPLAIN("Tried to change library of GDNative when it is already set");
|
||||
ERR_FAIL_COND(library.is_valid());
|
||||
ERR_FAIL_COND_MSG(library.is_valid(), "Tried to change library of GDNative when it is already set.");
|
||||
library = p_library;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue