diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-08-26 16:03:47 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-08-26 16:03:47 +0200 |
commit | cd2c39e14af1e9a411edc18729446f8810f84c4e (patch) | |
tree | 0f0842f598f5cfabfbd4fb2cb14ca7b99593c6af | |
parent | 460c28d3feb501c3bf4b60459af91d4cbf9ff8a2 (diff) | |
download | totem-cd2c39e14af1e9a411edc18729446f8810f84c4e.tar.gz |
grilo: Better error message on missing metadata for thumbnailing
-rw-r--r-- | src/icon-helpers.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |