X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/e612508d38532933c7a39299851c41ca5527d784..889e443ce51923704241d62daa65178c35dedbf9:/src/redis-cli.c diff --git a/src/redis-cli.c b/src/redis-cli.c index 97caf5be..8d20d1cd 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1233,7 +1233,7 @@ int main(int argc, char **argv) { /* Pipe mode */ if (config.pipe_mode) { - cliConnect(0); + if (cliConnect(0) == REDIS_ERR) exit(1); pipeMode(); }