Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/org/jruby/Ruby.java
Original file line number Diff line number Diff line change
@@ -172,6 +172,7 @@
import java.lang.invoke.MethodHandle;
import java.lang.ref.WeakReference;
import java.net.BindException;
import java.net.PortUnreachableException;
import java.nio.channels.ClosedChannelException;
import java.nio.charset.Charset;
import java.security.SecureRandom;
@@ -4080,6 +4081,8 @@ public RaiseException newIOErrorFromException(final IOException ex) {
}
}
return newRaiseException(getIOError(), errorMessage);
} else if (ex instanceof PortUnreachableException) {
throw newErrnoECONNREFUSEDError();
}
return newRaiseException(getIOError(), "IO Error");
}

0 comments on commit 99b7edc

Please sign in to comment.