summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-10-24 16:28:30 +0200
committerBastien Nocera <hadess@hadess.net>2016-10-24 16:32:05 +0200
commitb4245447ec557f032387a1ca40922d11d0da5b11 (patch)
tree9eff6dc94dfecbcc21f37cc9d14412a3d2fdcff4 /libs
parentcd58c0445c47ca7cd8b10af50f036adaa2c2b284 (diff)
downloadgrilo-b4245447ec557f032387a1ca40922d11d0da5b11.tar.gz
net: Always return an error on failure
When getting a "Gateway timeout" error, or any other errors not handled in the switch statement, we should make sure to return an error. https://bugzilla.gnome.org/show_bug.cgi?id=773422
Diffstat (limited to 'libs')
-rw-r--r--libs/net/grl-net-wc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index a312fcc..36ae4c2 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -488,6 +488,9 @@ parse_error (guint status,
return;
default:
GRL_DEBUG ("Unhandled status: %s", soup_status_get_phrase (status));
+ g_simple_async_result_set_error (result, G_IO_ERROR,
+ G_IO_ERROR_FAILED,
+ "%s", soup_status_get_phrase (status));
}
}