Skip to content

Commit

Permalink
adds comment on exception with simple name NotFound
Browse files Browse the repository at this point in the history
[skip ci]
mkristian committed Oct 8, 2015
1 parent fe3a483 commit 246dbb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jruby/ext/openssl/x509store/Store.java
Original file line number Diff line number Diff line change
@@ -374,6 +374,8 @@ public int setDefaultPaths(Ruby runtime) throws Exception {
// set_default_paths ignores FileNotFound
}
catch (IOException e) {
// this is for older jrubies as they do not have a
// org.jruby.util.ResourceException.NotFound
if (!e.getClass().getSimpleName().equals("NotFound")) {
throw e;
}

1 comment on commit 246dbb7

@kares
Copy link
Member

@kares kares commented on 246dbb7 Oct 8, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💅 👍

Sorry, something went wrong.

Please sign in to comment.