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:
committed by
Rémi Verschelde
parent
40640a01dc
commit
71d71d55b5
@ -1930,8 +1930,7 @@ void EditorFileSystem::reimport_files(const Vector<String> &p_files) {
|
||||
Error err = da->make_dir(".import");
|
||||
if (err) {
|
||||
memdelete(da);
|
||||
ERR_EXPLAIN("Failed to create 'res://.import' folder.");
|
||||
ERR_FAIL();
|
||||
ERR_FAIL_MSG("Failed to create 'res://.import' folder.");
|
||||
}
|
||||
}
|
||||
memdelete(da);
|
||||
|
||||
Reference in New Issue
Block a user