You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
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
@@ -87,8 +87,7 @@ void CPUParticles2DEditorPlugin::_generate_emission_mask() {
|
||||
Ref<Image> img;
|
||||
img.instance();
|
||||
Error err = ImageLoader::load_image(source_emission_file, img);
|
||||
ERR_EXPLAIN(TTR("Error loading image:") + " " + source_emission_file);
|
||||
ERR_FAIL_COND(err != OK);
|
||||
ERR_FAIL_COND_MSG(err != OK, "Error loading image: " + source_emission_file + ".");
|
||||
|
||||
if (img->is_compressed()) {
|
||||
img->decompress();
|
||||
@@ -196,8 +195,7 @@ void CPUParticles2DEditorPlugin::_generate_emission_mask() {
|
||||
valid_normals.resize(vpc);
|
||||
}
|
||||
|
||||
ERR_EXPLAIN(TTR("No pixels with transparency > 128 in image..."));
|
||||
ERR_FAIL_COND(valid_positions.size() == 0);
|
||||
ERR_FAIL_COND_MSG(valid_positions.size() == 0, "No pixels with transparency > 128 in image...");
|
||||
|
||||
if (capture_colors) {
|
||||
PoolColorArray pca;
|
||||
|
||||
Reference in New Issue
Block a user