Skip to content

Commit

Permalink
Merge pull request quarkusio#42853 from gsmet/also-ignore-FileNotFoun…
Browse files Browse the repository at this point in the history
…dException

Config Doc - Also ignore FileNotFoundException
  • Loading branch information
gsmet committed Aug 29, 2024
2 parents f63e211 + 68d78a2 commit 844a541
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.quarkus.annotation.processor.util;

import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand Down Expand Up @@ -180,7 +181,7 @@ public Optional<Map<String, Object>> getExtensionMetadata() {

return Optional.of(extensionMetadata);
}
} catch (NoSuchFileException e) {
} catch (NoSuchFileException | FileNotFoundException e) {
// ignore
// we could get the URI, create a Path and check that the path exists but it seems a bit overkill
return Optional.empty();
Expand Down

0 comments on commit 844a541

Please sign in to comment.