mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-02-03 13:47:16 +03:00
Dominik Csapak
14f99a1614
api: FileRestore: decode and return proper error of file-restore listing
since commit ba690c40 ("file-restore: remove 'json-error' parameter from list_files") in proxmox-backup, the file-restore binary will return the error as json when called with '--output-format json' (which we do in PVE::PBSClient) here, we assume that 'file-restore' will fail in that case, and we try to use the return value as an array ref which fails, and the user never sees the real error message. To fix that, check the ref type of the return value and act accordingly Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Description
No description provided
Languages
Perl
99.2%
Makefile
0.7%