[gnome-software/gnome-3-22] trivial: Add warning when screenshot download failed
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Add warning when screenshot download failed
- Date: Thu, 1 Dec 2016 14:34:00 +0000 (UTC)
commit 07d12365aa42270f132e2caf8993aeabff114eac
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Nov 9 23:08:47 2016 +0100
trivial: Add warning when screenshot download failed
src/gs-screenshot-image.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 119ebd9..57d3547 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -215,6 +215,9 @@ gs_screenshot_image_complete_cb (SoupSession *session,
return;
if (msg->status_code != SOUP_STATUS_OK) {
+ g_warning ("Result of screenshot downloading attempt with "
+ "status code '%u': %s", msg->status_code,
+ msg->reason_phrase);
/* TRANSLATORS: this is when we try to download a screenshot and
* we get back 404 */
gs_screenshot_image_set_error (ssimg, _("Screenshot not found"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]