From: Thomas Lamprecht Date: Mon, 9 Mar 2020 16:29:37 +0000 (+0100) Subject: LDAP: fix missing newline in error message X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=1175979f7878a4a003629439c3231339d88d2153 LDAP: fix missing newline in error message seems like LDAP->new doesn't adds it, so we get the ". at /path/to/module.pm line xy" ugly error Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/LDAP.pm b/src/PVE/LDAP.pm index cb88977..3288146 100644 --- a/src/PVE/LDAP.pm +++ b/src/PVE/LDAP.pm @@ -38,7 +38,7 @@ sub ldap_connect { $ldap_opts{$opt} = $opts->{$opt} if $opts->{$opt}; } - my $ldap = Net::LDAP->new($hosts, %ldap_opts) || die $@; + my $ldap = Net::LDAP->new($hosts, %ldap_opts) || die "$@\n"; if ($start_tls) { $ldap->start_tls(%$opts);