diff --git a/independent-projects/tools/analytics-common/src/main/java/io/quarkus/analytics/util/FileUtils.java b/independent-projects/tools/analytics-common/src/main/java/io/quarkus/analytics/util/FileUtils.java index 609f4431d333f..fb8f7d9796e46 100644 --- a/independent-projects/tools/analytics-common/src/main/java/io/quarkus/analytics/util/FileUtils.java +++ b/independent-projects/tools/analytics-common/src/main/java/io/quarkus/analytics/util/FileUtils.java @@ -81,6 +81,12 @@ public static Optional read(Class 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(); } } }