Skip to content

Commit

Permalink
fixing Issue 188 - Pipline.syncAndReturnAll changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoskov committed Aug 1, 2011
1 parent 22d4d3f commit ec0b58e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/redis/clients/jedis/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.Set;

import redis.clients.jedis.BinaryClient.LIST_POSITION;
import redis.clients.jedis.exceptions.JedisDataException;

public class Pipeline extends Queable {
private Client client;
Expand Down Expand Up @@ -39,7 +40,11 @@ public List<Object> syncAndReturnAll() {
List<Object> unformatted = client.getAll();
List<Object> formatted = new ArrayList<Object>();
for (Object o : unformatted) {
formatted.add(generateResponse(o).get());
try{
formatted.add(generateResponse(o).get());
}catch(JedisDataException e){
formatted.add(e);
}
}
return formatted;
}
Expand Down

0 comments on commit ec0b58e

Please sign in to comment.