[gnome-software] Do not crash when startup up without network access
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Do not crash when startup up without network access
- Date: Tue, 15 Oct 2013 15:10:04 +0000 (UTC)
commit eac4009b27717a93548cb89c6e892a31a4b91d7a
Author: Richard Hughes <richard hughsie com>
Date: Tue Oct 15 11:48:04 2013 +0100
Do not crash when startup up without network access
src/plugins/gs-plugin-fedora-tagger.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-tagger.c b/src/plugins/gs-plugin-fedora-tagger.c
index 5567b12..0944674 100644
--- a/src/plugins/gs-plugin-fedora-tagger.c
+++ b/src/plugins/gs-plugin-fedora-tagger.c
@@ -335,8 +335,11 @@ gs_plugin_fedora_tagger_download (GsPlugin *plugin, GError **error)
status_code = soup_session_send_message (plugin->priv->session, msg);
if (status_code != SOUP_STATUS_OK) {
ret = FALSE;
- g_debug ("Failed to set rating on fedora-tagger: %s",
- soup_status_get_phrase (status_code));
+ g_set_error (error,
+ GS_PLUGIN_ERROR,
+ GS_PLUGIN_ERROR_FAILED,
+ "Failed to set rating on fedora-tagger: %s",
+ soup_status_get_phrase (status_code));
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]