Skip to content

Commit

Permalink
catch error when filenames cannot be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
kbruegge committed Oct 17, 2016
1 parent 2dc1848 commit 8915879
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/fact/auxservice/AuxFileService.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ public boolean accept(File dir, String name) {
log.error("Could not create path to auxillary file " + dir + " " +name);
return false;
}catch (IllegalArgumentException e) {
log.warn("The file " + dir + " " +name + " is not a recognized aux service. ");
log.warn("The file " + dir + "/" +name + " is not a recognized aux service. ");
return false;
}catch (IndexOutOfBoundsException e){
log.warn("The file " + dir + "/" +name + " is not a recognized aux service. " +
"Could not parse file name into a recognized service.");
return false;
}
return true;
Expand Down

0 comments on commit 8915879

Please sign in to comment.