diff --git a/src/main/java/org/jruby/ext/openssl/SSLSocket.java b/src/main/java/org/jruby/ext/openssl/SSLSocket.java index 36c61508..ed336bdb 100644 --- a/src/main/java/org/jruby/ext/openssl/SSLSocket.java +++ b/src/main/java/org/jruby/ext/openssl/SSLSocket.java @@ -951,7 +951,7 @@ private IRubyObject syswriteImpl(final ThreadContext context, } catch (IOException ex) { debugStackTrace(runtime, "SSLSocket.syswriteImpl", ex); - throw Utils.newError(runtime, runtime.getIOError(), ex); + throw runtime.newIOErrorFromException(ex); } }