File tree Expand file tree Collapse file tree
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -837,8 +837,9 @@ private IRubyObject sysreadImpl(final ThreadContext context,
837837 buffStr .setValue (new ByteList (bytesRead , offset , read , false ));
838838 return buffStr ;
839839 }
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 );
842843 }
843844 }
844845
@@ -920,8 +921,9 @@ private IRubyObject syswriteImpl(final ThreadContext context,
920921
921922 return runtime .newFixnum (written );
922923 }
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 );
925927 }
926928 }
927929
You can’t perform that action at this time.
0 commit comments