summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-30 15:35:09 -0700
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-30 15:35:09 -0700
commit2b99cf9650d90ef852a01b082578a74d1c20065f (patch)
treed967380733628ffb0c93b8165880a241fbac8cd0 /src/client
parent4d0870aee42ede6ecced8ddbbb6ab3626db3d96f (diff)
downloadrspamd-2b99cf9650d90ef852a01b082578a74d1c20065f.tar.gz
rspamd-2b99cf9650d90ef852a01b082578a74d1c20065f.zip
Use status line in client.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamdclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c
index 59dc77b76..55f1a6e37 100644
--- a/src/client/rspamdclient.c
+++ b/src/client/rspamdclient.c
@@ -98,7 +98,8 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn,
}
else {
if (msg->body == NULL || msg->body->len == 0 || msg->code != 200) {
- err = g_error_new (RCLIENT_ERROR, msg->code, "HTTP error occurred: %d", msg->code);
+ err = g_error_new (RCLIENT_ERROR, msg->code, "HTTP error: %d, %s",
+ msg->code, msg->status ? msg->status->str : "unknown error");
req->cb (c, msg, c->server_name->str, NULL, req->ud, err);
g_error_free (err);
return -1;