Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
This commit is contained in:
parent
40640a01dc
commit
71d71d55b5
76 changed files with 297 additions and 708 deletions
|
|
@ -646,8 +646,7 @@ void TileSetEditor::_on_textures_added(const PoolStringArray &p_paths) {
|
|||
for (int i = 0; i < p_paths.size(); i++) {
|
||||
Ref<Texture> t = Ref<Texture>(ResourceLoader::load(p_paths[i]));
|
||||
|
||||
ERR_EXPLAIN("'" + p_paths[i] + "' is not a valid texture.");
|
||||
ERR_CONTINUE(!t.is_valid());
|
||||
ERR_CONTINUE_MSG(!t.is_valid(), "'" + p_paths[i] + "' is not a valid texture.");
|
||||
|
||||
if (texture_map.has(t->get_rid())) {
|
||||
invalid_count++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue