aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index c93af94ee..0b1865a58 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -226,6 +226,7 @@ static int get_request(int sock, int *part)
if (got <= 0) {
if (got < 0) {
perror("recv");
+ logmsg("recv() returned error");
return DOCNUMBER_INTERNAL;
}
logmsg("Connection closed by client");
@@ -312,7 +313,7 @@ static int get_request(int sock, int *part)
logmsg("Got illegal request");
fprintf(stderr, "Got illegal request\n");
- return -1;
+ return DOCNUMBER_404;
}