Merge pull request #25148 from capnm/capnm-print-corrupt-image-path

Print the path of a corrupt image
This commit is contained in:
Rémi Verschelde 2019-05-30 14:52:55 +02:00 committed by GitHub
commit 0411ab56f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {