mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 04:03:39 +00:00
certificate: actually print openssl errors
print_errs (which is also called internally by die_now) will only 'warn' the collected error stack if the log level is set to tracing. otherwise, it will just return the error message(s) corresponding to the error stack as string. while they are not always the most user-friendly ones, they do provide additional context that might help to find out what is actually causing a particular failure. both helpers here actually provide a meaninful user friendly context (via $msg) as final line. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> [ T: resolve merge conflict due to dropped warn helper ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5028848d42
commit
0bda45be46
@ -173,6 +173,7 @@ sub der_to_pem {
|
||||
|
||||
my sub ssl_die {
|
||||
my ($msg) = @_;
|
||||
warn Net::SSLeay::print_errs();
|
||||
Net::SSLeay::die_now("$msg\n");
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user