From: Dominik Csapak Date: Wed, 13 Mar 2019 14:17:06 +0000 (+0100) Subject: show all errors when we get an ldap connection error X-Git-Url: https://git.proxmox.com/?p=pmg-api.git;a=commitdiff_plain;h=cfb648f5e3762f170181f850d5f987fc051e4eef;hp=4c4fec6be7147b45d514e66c007426069bbb8852 show all errors when we get an ldap connection error LDAP->new can also set $@ Signed-off-by: Dominik Csapak --- diff --git a/PMG/LDAPCache.pm b/PMG/LDAPCache.pm index b151ea7..0d36019 100755 --- a/PMG/LDAPCache.pm +++ b/PMG/LDAPCache.pm @@ -358,7 +358,7 @@ sub ldap_connect_and_bind { my ($self) = @_; my $ldap = $self->ldap_connect() || - die "Can't bind to ldap server '$self->{id}': $!\n"; + die "Can't bind to ldap server '$self->{id}': $! $@\n"; my $mesg;