summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hiredis.c b/hiredis.c
index e59919d..4544c28 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -643,12 +643,12 @@ int redisBufferRead(redisContext *c) {
} else {
/* Set error in context */
c->error = sdscatprintf(sdsempty(),
- "Error reading from socket: %s", strerror(errno));
+ "read: %s", strerror(errno));
return REDIS_ERR;
}
} else if (nread == 0) {
c->error = sdscatprintf(sdsempty(),
- "Server closed the connection");
+ "read: Server closed the connection");
return REDIS_ERR;
} else {
redisReplyReaderFeed(c->reader,buf,nread);
@@ -704,7 +704,7 @@ int redisBufferWrite(redisContext *c, int *done) {
} else {
/* Set error in context */
c->error = sdscatprintf(sdsempty(),
- "Error writing to socket: %s", strerror(errno));
+ "write: %s", strerror(errno));
return REDIS_ERR;
}
} else if (nwritten > 0) {