]> git.proxmox.com Git - pve-installer.git/commitdiff
gtk: FQDN parsing: fix fallback from error to generic message
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Feb 2024 09:36:55 +0000 (10:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Feb 2024 09:52:43 +0000 (10:52 +0100)
$@ is an empty string here, so we need to use a logical or operator,
not the definedness one, i.e., just like the if-branch condition
itself.

Reported-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 351b240bcaa5c728bb837b4793457a4202a5afc3..a6a4cfb55e4ae463ca2238f8f546c827c5c24465 100755 (executable)
@@ -461,7 +461,7 @@ sub create_ipconf_view {
        my $err = $@;
 
        if ($err || $text =~ m/.example.invalid$/) {
-           Proxmox::UI::message($err // 'Hostname does not look like a valid fully qualified domain name');
+           Proxmox::UI::message($err || 'Hostname does not look like a valid fully qualified domain name');
            $hostentry->grab_focus();
            return;
        } else {