[totem/wip/hadess/thumbnails] grilo: Better error message on missing metadata for thumbnailing



commit cd2c39e14af1e9a411edc18729446f8810f84c4e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 26 16:03:47 2020 +0200

    grilo: Better error message on missing metadata for thumbnailing

 src/icon-helpers.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/icon-helpers.c b/src/icon-helpers.c
index 2fc9915d2..d56d9d047 100644
--- a/src/icon-helpers.c
+++ b/src/icon-helpers.c
@@ -213,7 +213,12 @@ thumbnail_media_async_thread (GTask    *task,
        }
 
        if (!uri || !mtime) {
-               g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "URI or mtime missing");
+               if (!uri && !mtime)
+                       g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "URI and mtime 
missing");
+               else if (!uri)
+                       g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "URI missing");
+               else
+                       g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "mtime missing");
                g_object_unref (task);
                return;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]