kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=e3a2bd5fa66047ff318c1be401c59d93bf3a0cbe

commit e3a2bd5fa66047ff318c1be401c59d93bf3a0cbe
Author: Kim Woelders <[email protected]>
Date:   Tue Oct 19 08:18:58 2021 +0200

    imlib2_view: If verbose show error message on failure
---
 src/bin/imlib2_view.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index 333faa7..0e09c18 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -405,7 +405,10 @@ main(int argc, char **argv)
                   image_width = 0;
                   im2 = imlib_load_image(file);
                   if (!im2)
-                     continue;
+                    {
+                       Vprintf("*** Error loading image: %s\n", file);
+                       continue;
+                    }
                   zoom = 1.0;
                   zoom_mode = 0;
                   imlib_context_set_image(im);

-- 


Reply via email to