]> git.proxmox.com Git - pve-common.git/commit - src/PVE/Certificate.pm
certificate: actually print openssl errors
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 7 Mar 2023 10:50:18 +0000 (11:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Mar 2023 17:25:04 +0000 (18:25 +0100)
commit0bda45be464cf31c46ad7a2436c9472c52c8d6d8
treeb93b4fd59afc9df208b2d60504ed1e85a230ba64
parent5028848d42f90535a0c8a1e60a488cf7b8986b62
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>
src/PVE/Certificate.pm