diff --git a/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/RoqGenerator.java b/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/RoqGenerator.java index 076b1db0..057a6a93 100644 --- a/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/RoqGenerator.java +++ b/roq-generator/runtime/src/main/java/io/quarkiverse/roq/generator/runtime/RoqGenerator.java @@ -7,6 +7,7 @@ import java.io.IOException; import java.io.InputStream; +import java.net.ConnectException; import java.net.URI; import java.net.URL; import java.nio.file.Path; @@ -77,7 +78,12 @@ void onStart(@Observes Router router) { LOGGER.info("Roq generation succeeded in directory: " + outputDir()); Quarkus.asyncExit(0); }, throwable -> { - LOGGER.error("Roq generation failed"); + if(throwable instanceof ConnectException) { + LOGGER.error("Roq generation failed"); + } else { + LOGGER.error("Roq generation failed", throwable); + } + Quarkus.asyncExit(1); }); }