Add url to log message
[claws.git] / src / plugins / litehtml_viewer / container_linux_images.cpp
index ed42121d1e1994889114bb540a30ebce5b0a444f..a6ffeff0bcc0fb359f5b2bb4e16d1a5158847d91 100644 (file)
@@ -40,8 +40,8 @@ static GdkPixbuf *lh_get_image(const litehtml::tchar_t* url)
 
        if (error || !image) {
                if (error) {
-                       g_warning("lh_get_image: Could not create pixbuf %s",
-                                       error->message);
+                       g_warning("lh_get_image: Could not create pixbuf for '%s': %s",
+                               url, error->message);
                        g_clear_error(&error);
                }
                goto theend;
@@ -49,8 +49,8 @@ static GdkPixbuf *lh_get_image(const litehtml::tchar_t* url)
 
        pixbuf = gdk_pixbuf_new_from_stream(image, NULL, &error);
        if (error) {
-               g_warning("lh_get_image: Could not create pixbuf %s",
-                               error->message);
+               g_warning("lh_get_image: Could not create pixbuf for '%s': %s",
+                       url, error->message);
                pixbuf = NULL;
                g_clear_error(&error);
        }