mirror of
git://git.proxmox.com/git/pve-common.git
synced 2024-12-22 21:33:47 +03:00
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 <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1714a63b36
commit
1175979f78
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user