5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-03-11 20:58:42 +03:00

improve error msg

This commit is contained in:
Wolfgang Link 2015-11-06 15:53:54 +01:00 committed by Dietmar Maurer
parent aec521ca2e
commit 9303e6fc81

View File

@ -761,6 +761,8 @@ sub parse_disks {
push @$cmd, 'pvesm', 'path', "$stor$disk";
my $path = run_cmd($cmd);
die "Get no path from pvesm path $stor$disk\n" if !$path;
if ($vm_type eq 'qemu' && $path =~ m/^\/dev\/zvol\/(\w+.*)(\/$disk)$/) {
my @array = split('/', $1);