Skip to content

Commit

Permalink
Merge pull request #40657 from brunobat/analitics-gradle
Browse files Browse the repository at this point in the history
Prevent abort because of a throwable
  • Loading branch information
gsmet authored Jun 6, 2024
2 parents 8416855 + 5ed60b9 commit c144527
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 c144527

Please sign in to comment.