diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-10-24 16:28:30 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-10-24 16:32:05 +0200 |
commit | b4245447ec557f032387a1ca40922d11d0da5b11 (patch) | |
tree | 9eff6dc94dfecbcc21f37cc9d14412a3d2fdcff4 /libs | |
parent | cd58c0445c47ca7cd8b10af50f036adaa2c2b284 (diff) | |
download | grilo-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.c | 3 |
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)); } } |