From: Adam Dickmeiss Date: Fri, 13 Jul 2007 13:16:57 +0000 (+0000) Subject: A little more details on how record&offset=.. fails X-Git-Tag: PAZPAR2.1.0.2~57 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=32176e44d107d0b1edb8be10ca7e2fda4d29e3ac;p=pazpar2-moved-to-github.git A little more details on how record&offset=.. fails --- diff --git a/src/client.c b/src/client.c index ff9cc02..a88f6b5 100644 --- a/src/client.c +++ b/src/client.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.15 2007-07-05 18:46:03 adam Exp $ +/* $Id: client.c,v 1.16 2007-07-13 13:16:57 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -249,9 +249,13 @@ int client_show_raw_begin(struct client *cl, int position, cl->show_raw->esn = 0; - if (cl->state == Client_Failed || cl->state == Client_Disconnected) + if (cl->state == Client_Failed) { - client_show_raw_error(cl, "not connected"); + client_show_raw_error(cl, "client failed"); + } + else if (cl->state == Client_Disconnected) + { + client_show_raw_error(cl, "client disconnected"); } else {