diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-30 14:52:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 14:52:55 +0200 |
commit | 0411ab56f5d20ee026a3137d04325c842cb07c68 (patch) | |
tree | 27205314cbd94410d5ec6f4a3cd38ed30e4dd804 | |
parent | 9dee6bce8de786e6bb3c13c9c9ac194ff90ecb95 (diff) | |
parent | a6ab7a91efdbcb2365270746ec8acd1aa330c276 (diff) |
Merge pull request #25148 from capnm/capnm-print-corrupt-image-path
Print the path of a corrupt image
-rw-r--r-- | core/io/image_loader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/io/image_loader.cpp b/core/io/image_loader.cpp index a5a0738140..a759e615c7 100644 --- a/core/io/image_loader.cpp +++ b/core/io/image_loader.cpp @@ -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) { |