Skip to content

Commit

Permalink
Config Doc - Also ignore FileNotFoundException
Browse files Browse the repository at this point in the history
Related to quarkusio#42561 (comment)

(cherry picked from commit 68d78a2)
  • Loading branch information
gsmet committed Aug 30, 2024
1 parent 8b07517 commit ead756a
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 @@ -159,7 +160,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 ead756a

Please sign in to comment.