From b3440e77ac2e2d16380a5b0181fe8a979ccfd2e6 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 2 Mar 2021 16:59:55 +1100 Subject: [PATCH] Make missing password and error If the URL is set but no password this is clearly a config error. (cherry picked from commit 184a8b26d3e4155e1139c15ea47228010d3d4af4) --- .../http/deployment/devmode/HttpRemoteDevClientProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/HttpRemoteDevClientProvider.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/HttpRemoteDevClientProvider.java index f9884b031d8d6..b279ae15ca9f8 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/HttpRemoteDevClientProvider.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/HttpRemoteDevClientProvider.java @@ -28,9 +28,8 @@ public Optional getClient() { return Optional.empty(); } if (!liveReloadConfig.password.isPresent()) { - log.warn( + throw new RuntimeException( "Live reload URL set but no password, remote dev requires a password, set quarkus.live-reload.password on both server and client"); - return Optional.empty(); } return Optional.of(new HttpRemoteDevClient(liveReloadConfig.url.get(), liveReloadConfig.password.get())); }