From 5ed61ea3055c21cd635f1d8d1f103f81a38888a8 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Wed, 16 Jul 2014 16:35:10 -0700 Subject: Added getlasterror()/clearlasterror() routines, and a "last redirection" introspection method. --- cluster_library.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cluster_library.c') diff --git a/cluster_library.c b/cluster_library.c index c681a17e..16f02d0f 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -380,6 +380,8 @@ static void cluster_set_err(redisCluster *c, char *err, int err_len) memcpy(c->err,err,err_len); c->err[err_len]='\0'; c->err_len = err_len; +php_printf("Set error to: %s\n", c->err); + } else { if(c->err) efree(c->err); c->err = NULL; -- cgit v1.2.3