[pve-devel] [PATCH 2/2] improve error msg

Wolfgang Link w.link at proxmox.com
Fri Nov 6 15:53:54 CET 2015


---
 pve-zsync | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pve-zsync b/pve-zsync
index c54441d..283b55c 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -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);
-- 
2.1.4




More information about the pve-devel mailing list