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
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ Error ImageLoader::load_image(String p_file, Ref<Image> p_image, FileAccess *p_c
|
|||
if (!loader[i]->recognize(extension))
|
||||
continue;
|
||||
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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue