File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -837,8 +837,9 @@ private IRubyObject sysreadImpl(final ThreadContext context,
837
837
buffStr .setValue (new ByteList (bytesRead , offset , read , false ));
838
838
return buffStr ;
839
839
}
840
- catch (IOException ioe ) {
841
- throw runtime .newIOError (ioe .getMessage ());
840
+ catch (IOException ex ) {
841
+ debug (runtime , "SSLSocket.sysreadImpl failed" , ex );
842
+ throw Utils .newError (runtime , runtime .getIOError (), ex );
842
843
}
843
844
}
844
845
@@ -920,8 +921,9 @@ private IRubyObject syswriteImpl(final ThreadContext context,
920
921
921
922
return runtime .newFixnum (written );
922
923
}
923
- catch (IOException ioe ) {
924
- throw runtime .newIOError (ioe .getMessage ());
924
+ catch (IOException ex ) {
925
+ debug (runtime , "SSLSocket.syswriteImpl failed" , ex );
926
+ throw Utils .newError (runtime , runtime .getIOError (), ex );
925
927
}
926
928
}
927
929
You can’t perform that action at this time.
0 commit comments