Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -437,8 +437,8 @@ public int accept(VirtualFrame frame, RubyBasicObject io) {
}

if (newFd == -1) {
System.err.println(posix().errno());
throw new UnsupportedOperationException();
CompilerDirectives.transferToInterpreter();
throw new RaiseException(getContext().getCoreLibrary().errnoError(posix().errno(), this));
}

return newFd;

0 comments on commit a7e499a

Please sign in to comment.