Merge pull request #25148 from capnm/capnm-print-corrupt-image-path
Print the path of a corrupt image
This commit is contained in:
commit
0411ab56f5
@ -65,6 +65,9 @@ Error ImageLoader::load_image(String p_file, Ref<Image> p_image, FileAccess *p_c
|
|||||||
if (!loader[i]->recognize(extension))
|
if (!loader[i]->recognize(extension))
|
||||||
continue;
|
continue;
|
||||||
Error err = loader[i]->load_image(p_image, f, p_force_linear, p_scale);
|
Error err = loader[i]->load_image(p_image, f, p_force_linear, p_scale);
|
||||||
|
if (err != OK) {
|
||||||
|
ERR_PRINTS("Error loading image: " + p_file);
|
||||||
|
}
|
||||||
|
|
||||||
if (err != ERR_FILE_UNRECOGNIZED) {
|
if (err != ERR_FILE_UNRECOGNIZED) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user