Skip to content

Commit

Permalink
Suppress error message in AbstractJarFileDependencyLocator if NSFE is…
Browse files Browse the repository at this point in the history
… thrown
  • Loading branch information
embeddedt committed Mar 21, 2024
1 parent 3adccc1 commit 438a306
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.util.Optional;

Expand All @@ -25,7 +26,7 @@ protected Optional<InputStream> loadResourceFromModFile(final IModFile modFile,
try {
return Optional.of(Files.newInputStream(modFile.findResource(path.toString())));
}
catch (final FileNotFoundException e) {
catch (final FileNotFoundException | NoSuchFileException e) {
LOGGER.debug("Failed to load resource {} from {}, it does not contain dependency information.", path, modFile.getFileName());
return Optional.empty();
}
Expand Down

0 comments on commit 438a306

Please sign in to comment.