Skip to content

Commit 3becf4d

Browse files
Chloémarc0der
authored andcommitted
fix: improve network warning message clarity
Reword the INTERNET NOT REACHABLE warning to explain that SDKMAN! needs an active connection, and that the healthcheck config is for users whose connection is active but slow — not a fix for no internet.
1 parent 9168de0 commit 3becf4d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/bash/sdkman-availability.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ function __sdkman_display_network_warning() {
4747
if [[ -z "$healthcheck_status" ]]; then
4848
__sdkman_echo_red "==== INTERNET NOT REACHABLE! ==================================================="
4949
__sdkman_echo_red ""
50-
__sdkman_echo_red " Some functionality is disabled or only partially available."
51-
__sdkman_echo_red " If this persists, disable the healthcheck in ${SDKMAN_DIR}/etc/config:"
50+
__sdkman_echo_red " SDKMAN! needs an active internet connection for full functionality."
51+
__sdkman_echo_red ""
52+
__sdkman_echo_red " If your connection is active but slow, you can disable the startup"
53+
__sdkman_echo_red " healthcheck in ${SDKMAN_DIR}/etc/config:"
5254
__sdkman_echo_red ""
5355
__sdkman_echo_red " sdkman_healthcheck_enable=false"
5456
__sdkman_echo_red ""

0 commit comments

Comments
 (0)