Skip to content

Commit

Permalink
Make missing password and error
Browse files Browse the repository at this point in the history
If the URL is set but no password
this is clearly a config error.

(cherry picked from commit 184a8b2)
  • Loading branch information
stuartwdouglas authored and gsmet committed Mar 2, 2021
1 parent 9df0c28 commit b3440e7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public Optional<RemoteDevClient> 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()));
}
Expand Down

0 comments on commit b3440e7

Please sign in to comment.