summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2023-11-16 15:25:40 +0100
committerDave Davenport <qball@blame.services>2023-11-16 15:25:40 +0100
commit24c325837969d2ba97ebab0e5b1dcb9e3b756e30 (patch)
tree7ef4f2498aec94f07b06b33858ecb6c400b9ae26
parent272c1ab231f9749a369c2784080020a2122d85c7 (diff)
[IconFetcher] If last step fails to load icon, don't error out make warning
-rw-r--r--source/rofi-icon-fetcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c
index 3df9b509..c65463ae 100644
--- a/source/rofi-icon-fetcher.c
+++ b/source/rofi-icon-fetcher.c
@@ -360,8 +360,8 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_scale(
icon_path, sentry->wsize, sentry->hsize, TRUE, &error);
if (error != NULL) {
- g_error("Failed to load image: |%s| %d %d %s (%p)", icon_path,
- sentry->wsize, sentry->hsize, error->message, pb);
+ g_warning("Failed to load image: |%s| %d %d %s (%p)", icon_path,
+ sentry->wsize, sentry->hsize, error->message, pb);
g_error_free(error);
if (pb) {
g_object_unref(pb);