From 1175979f7878a4a003629439c3231339d88d2153 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 9 Mar 2020 17:29:37 +0100 Subject: [PATCH] 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 --- src/PVE/LDAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2