summaryrefslogtreecommitdiff
path: root/src/lib/store/store_event.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2014-01-07 10:44:00 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2014-01-07 10:44:00 +0100
commitfeedcc4919feb92fb81f087b1c1b92fa958179eb (patch)
treeca07125fbc1251662320b2843b44e3914be06dda /src/lib/store/store_event.c
parenta1d9a09bf6811cba54c307b79b47c7649f1a7410 (diff)
Make libstore to be more verbose on errors.
Diffstat (limited to 'src/lib/store/store_event.c')
-rw-r--r--src/lib/store/store_event.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/store/store_event.c b/src/lib/store/store_event.c
index c46a296..2c60261 100644
--- a/src/lib/store/store_event.c
+++ b/src/lib/store/store_event.c
@@ -63,7 +63,12 @@ store_event_complete(void *data,
63 http_code = ecore_con_url_status_code_get(sa->ec); 63 http_code = ecore_con_url_status_code_get(sa->ec);
64 if ((http_code != 200) && (http_code != 201)) 64 if ((http_code != 200) && (http_code != 201))
65 { 65 {
66 errstr = store_utils_dupf("Server replied HTTP code %i", http_code); 66 errstr = store_utils_dupf("Server replied HTTP code %i\n"
67 "Data sent :\n%s\n"
68 "Server replied :\n%s",
69 http_code,
70 sa->data.sent,
71 eina_strbuf_string_get(sa->data.buf));
67 sa->cb.error((void *)sa->cb.data, sa->store, errstr); 72 sa->cb.error((void *)sa->cb.data, sa->store, errstr);
68 free(errstr); 73 free(errstr);
69 return EINA_TRUE; 74 return EINA_TRUE;