Permalink
Browse files

Add original cause to the exception

  • Loading branch information...
szegedi committed Apr 5, 2011
1 parent c196736 commit f368fcfbf527f6d89d07802dd8633cfb1f127058
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/ri/src/main/java/org/jredis/ri/alphazero/protocol/ProtocolBase.java
@@ -261,7 +261,7 @@ public Request createRequest(Command cmd, byte[]... args) throws ProviderExcepti
}
}
catch (IOException e) {
- throw new ProviderException("Problem writing to the buffer" + e.getLocalizedMessage());
+ throw new ProviderException("Problem writing to the buffer" + e.getLocalizedMessage(), e);
}
return createRequest(buffer);
}

0 comments on commit f368fcf

Please sign in to comment.