This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit ac4fb5e21fd84a1e71bbc8e6f9c56db7815bb17d
Author: Kim Woelders <[email protected]>
AuthorDate: Fri Jan 13 20:27:59 2023 +0100
imlib2_view: Be more verbose about load errors
---
src/bin/imlib2_view.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index e28df00..ec3710b 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -511,6 +511,7 @@ load_image(int no, const char *name)
anim_update(NULL, NULL, NULL, NULL, 0); /* Clean up previous animation */
+ err = 0;
image_width = 0; /* Force redraw in progress() */
draw = strtoul(name, &ptr, 0);
@@ -544,8 +545,6 @@ load_image(int no, const char *name)
imlib_context_set_image(im);
imlib_free_image(); /* Grabbed image is never cached */
-
- err = 0;
}
else
{
@@ -575,7 +574,12 @@ load_image(int no, const char *name)
animate = animate && animated;
- err = !im;
+ if (!im)
+ {
+ err = imlib_get_error();
+ Vprintf("*** Error %d:'%s' loading image: '%s'\n",
+ err, imlib_strerror(err), name);
+ }
}
return err;
@@ -800,7 +804,6 @@ main(int argc, char **argv)
no = no2;
break;
}
- Vprintf("*** Error loading image: %s\n", argv[no2]);
no2 += inc;
if (no2 >= argc)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.