summaryrefslogtreecommitdiff
path: root/ext/soup
diff options
context:
space:
mode:
authorDavid Hoyt <dhoyt@llnl.gov>2010-08-19 17:59:09 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-04 14:52:07 +0200
commitd011e96028b1a8c61dc1080e7ec91471effee58a (patch)
tree1afb891dabef1fa694b1728093baf591cb2cec6c /ext/soup
parent03f2e81f69b55aa8a34d343a9e419d1210842d47 (diff)
souphttpsrc: Improve error messages
Before they contained the URL before the actual failure. The other way around makes more sense and we do the same in other elements like filesrc. Fixes bug #627289.
Diffstat (limited to 'ext/soup')
-rw-r--r--ext/soup/gstsouphttpsrc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c
index 79268b27c..22ea771fc 100644
--- a/ext/soup/gstsouphttpsrc.c
+++ b/ext/soup/gstsouphttpsrc.c
@@ -1061,7 +1061,7 @@ gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
switch (msg->status_code) {
case SOUP_STATUS_CANT_RESOLVE:
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
- ("\"%s\": %s", src->location, msg->reason_phrase),
+ ("%s: %s", msg->reason_phrase, src->location),
("libsoup status code %d", msg->status_code));
src->ret = GST_FLOW_ERROR;
break;
@@ -1075,14 +1075,14 @@ gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
case SOUP_STATUS_CANT_CONNECT_PROXY:
case SOUP_STATUS_SSL_FAILED:
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
- ("\"%s\": %s", src->location, msg->reason_phrase),
+ ("%s: %s", msg->reason_phrase, src->location),
("libsoup status code %d", msg->status_code));
src->ret = GST_FLOW_ERROR;
break;
case SOUP_STATUS_IO_ERROR:
case SOUP_STATUS_MALFORMED:
GST_ELEMENT_ERROR (src, RESOURCE, READ,
- ("\"%s\": %s", src->location, msg->reason_phrase),
+ ("%s: %s", msg->reason_phrase, src->location),
("libsoup status code %d", msg->status_code));
src->ret = GST_FLOW_ERROR;
break;
@@ -1095,7 +1095,7 @@ gst_soup_http_src_parse_status (SoupMessage * msg, GstSoupHTTPSrc * src)
SOUP_STATUS_IS_SERVER_ERROR (msg->status_code)) {
/* Report HTTP error. */
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
- ("\"%s\": %s", src->location, msg->reason_phrase),
+ ("%s: %s", msg->reason_phrase, src->location),
("%d %s", msg->status_code, msg->reason_phrase));
src->ret = GST_FLOW_ERROR;
}