Skip to content

Commit

Permalink
Prevent abort because of a throwable
Browse files Browse the repository at this point in the history
(cherry picked from commit 5ed60b9)
  • Loading branch information
brunobat authored and gsmet committed Aug 7, 2024
1 parent 364bf1c commit a998fff
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public static <T> Optional<T> read(Class<T> clazz, Path path, MessageWriter log)
} catch (Exception e) {
log.warn("[Quarkus build analytics] Could not read {}", path.toString(), e);
return Optional.empty();
} catch (Throwable t) {
log.error("[Quarkus build analytics] Unexpected error reading class " + t.getClass().getName() +
" from path: " + path.toString() +
". Got message: " + t.getMessage() +
". Attempting to continue...");
return Optional.empty();
}
}
}

0 comments on commit a998fff

Please sign in to comment.