[gnome-boxes/propagate-downlod-error-msg-to-notification: 3/3] wizard: Include Download error message in notification
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/propagate-downlod-error-msg-to-notification: 3/3] wizard: Include Download error message in notification
- Date: Mon, 11 Mar 2019 08:30:03 +0000 (UTC)
commit df383d69965d4345c16db772906592034089259c
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Mar 6 11:03:50 2019 +0100
wizard: Include Download error message in notification
When failing to Download an OS, we just show "Download failed".
That's not helpful at all since users might question the failure
reason: whether it was connectivity problem or a 404.
These messages are propagate all the way from Libsoup and are
human readable. A 404 would be reported as "Not found".
Fixes #315
src/wizard.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 056d9a0b..4a7d2912 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -664,7 +664,7 @@ private async void download_media (string uri, string? filename, ActivityProgres
page = WizardPage.SOURCE;
} catch (GLib.Error e) {
warning ("Failed downloading media '%s'! %s", uri, e.message);
- window.notificationbar.display_error (_("Download failed."));
+ window.notificationbar.display_error (_("Download failed: ") + e.message);
page = WizardPage.SOURCE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]