error text fixed

pull/282/head
Nikita 9 years ago
parent 0afc82049f
commit aaf343e66a

@ -231,7 +231,7 @@ public class CommandBatchExecutorService extends CommandExecutorService {
public void operationComplete(ChannelFuture future) throws Exception {
if (!future.isSuccess()) {
timeout.cancel();
ex.set(new WriteRedisConnectionException("channel: " + future.channel() + " has been closed"));
ex.set(new WriteRedisConnectionException("Can't write commands batch to channel: " + future.channel(), future.cause()));
connectionManager.getTimer().newTimeout(retryTimerTask, connectionManager.getConfig().getRetryInterval(), TimeUnit.MILLISECONDS);
}
}

@ -19,10 +19,6 @@ public class WriteRedisConnectionException extends RedisException {
private static final long serialVersionUID = -4756928186967834601L;
public WriteRedisConnectionException(String msg) {
super(msg);
}
public WriteRedisConnectionException(String msg, Throwable e) {
super(msg, e);
}

Loading…
Cancel
Save