Skip to content

Commit

Permalink
Small fix in Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Jan 30, 2025
1 parent ca96ac4 commit f525f56
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
});
}
Expand Down

0 comments on commit f525f56

Please sign in to comment.