X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/d665dd0865e3bfbd51b2bdaf1482edac861ecde1..7eb850ef0e437323e2d84157ddc2e6e82af57bbc:/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(); }