From c9eb356e15da1727055d5f6487b2801a8eeeab8c Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Tue, 12 Sep 2023 14:29:54 +0200 Subject: [PATCH] parse disks: improve error messages The one with the backup flag was reported in the community forum: https://forum.proxmox.com/threads/77254/ Signed-off-by: Fiona Ebner --- pve-zsync | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pve-zsync b/pve-zsync index 98190b2..de5d46f 100755 --- a/pve-zsync +++ b/pve-zsync @@ -949,11 +949,12 @@ sub parse_disks { $num++; } else { - die "ERROR: in path\n"; + die "unexpected path '$path'\n"; } } - die "Vm include no disk on zfs.\n" if !$disks->{0}; + die "Guest does not include any ZFS volumes (or all are excluded by the backup flag).\n" + if !$disks->{0}; return $disks; }