Skip to content

Commit

Permalink
Prevent abort because of a throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobat committed May 22, 2024
1 parent 090f819 commit 5ed60b9
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 5ed60b9

Please sign in to comment.