Skip to content

Commit

Permalink
Merge pull request quarkusio#22151 from geoand/quarkusio#22105
Browse files Browse the repository at this point in the history
Provide meaningful error message when updating Quarkus in dev-mode
  • Loading branch information
geoand authored Dec 13, 2021
2 parents 1df746d + 7c758c7 commit ab382fe
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,18 @@ public void close() {
fsWatchUtil.shutdown();
try {
stop();
if (RuntimeUpdatesProcessor.INSTANCE == null) {
throw new IllegalStateException(
"Hot deployment of the application is not supported when updating the Quarkus version. The application needs to be stopped and dev mode started up again");
}
} finally {
try {
try {
RuntimeUpdatesProcessor.INSTANCE.close();
} catch (IOException e) {
log.error("Failed to close compiler", e);
if (RuntimeUpdatesProcessor.INSTANCE != null) {
try {
RuntimeUpdatesProcessor.INSTANCE.close();
} catch (IOException e) {
log.error("Failed to close compiler", e);
}
}
for (HotReplacementSetup i : hotReplacementSetups) {
i.close();
Expand Down

0 comments on commit ab382fe

Please sign in to comment.