Skip to content

Commit

Permalink
Ugh, needs to be endsWith because Java sticks the files in. #5318.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 31, 2018
1 parent 833a0aa commit f8f45d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/org/jruby/runtime/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ public static Errno errnoFromException(Throwable t) {
return Errno.EMSGSIZE;
case "Is a directory":
return Errno.EISDIR;
case "Invalid cross-device link":
return Errno.EXDEV;
}

if (errorMessage.endsWith("Invalid cross-device link")) {
return Errno.EXDEV;
}
} else if (t instanceof PortUnreachableException) {
return Errno.ECONNREFUSED;
Expand Down

0 comments on commit f8f45d3

Please sign in to comment.