Blame SOURCES/0028-iso-dialog-Give-less-scary-error-if-there-are-no-ISO.patch

1c3bf4
From ff11d5937ef2681f1b2bd58d9bea5854f7ff3c9a Mon Sep 17 00:00:00 2001
1c3bf4
From: Frediano Ziglio <freddy77@gmail.com>
1c3bf4
Date: Thu, 9 Jul 2020 14:27:02 +0100
1c3bf4
Subject: [PATCH] iso-dialog: Give less scary error if there are no ISOs
1c3bf4
1c3bf4
Instead of a fail simply reply that there are no ISO files.
1c3bf4
1c3bf4
Message text was suggested by Radek Duda who reported the issue.
1c3bf4
1c3bf4
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
1c3bf4
---
1c3bf4
 src/remote-viewer-iso-list-dialog.c | 2 +-
1c3bf4
 1 file changed, 1 insertion(+), 1 deletion(-)
1c3bf4
1c3bf4
diff --git a/src/remote-viewer-iso-list-dialog.c b/src/remote-viewer-iso-list-dialog.c
1c3bf4
index c6fbe50..c7ee051 100644
1c3bf4
--- a/src/remote-viewer-iso-list-dialog.c
1c3bf4
+++ b/src/remote-viewer-iso-list-dialog.c
1c3bf4
@@ -153,7 +153,7 @@ fetch_iso_names_cb(OvirtForeignMenu *foreign_menu,
1c3bf4
     iso_list = ovirt_foreign_menu_fetch_iso_names_finish(foreign_menu, result, &error);
1c3bf4
 
1c3bf4
     if (!iso_list) {
1c3bf4
-        const gchar *msg = error ? error->message : _("Failed to fetch CD names");
1c3bf4
+        const gchar *msg = error ? error->message : _("No ISO files in domain");
1c3bf4
         gchar *markup = g_strdup_printf("%s", msg);
1c3bf4
 
1c3bf4
         g_debug("Error fetching ISO names: %s", msg);
1c3bf4
-- 
1c3bf4
2.31.1
1c3bf4