X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=blobdiff_plain;f=PVE%2FQemuServer%2FOVF.pm;h=dbcc361d53def81fffd0508a4e16fb4633a1b449;hp=536e0eb85c1ab217ebcda082ccd8886eab8e679e;hb=48caa553aba68432f43aca58276de2abeb29a236;hpb=afc910a829b8ab894b23ca465930b1e902b4bc65 diff --git a/PVE/QemuServer/OVF.pm b/PVE/QemuServer/OVF.pm index 536e0eb..dbcc361 100644 --- a/PVE/QemuServer/OVF.pm +++ b/PVE/QemuServer/OVF.pm @@ -213,12 +213,16 @@ ovf:Item[rasd:InstanceID='%s']/rasd:ResourceType", $controller_id); my $ovf_dir = realpath(dirname(File::Spec->rel2abs($ovf))); my $backing_file_path = realpath(join ('/', $ovf_dir, $filepath)); if ($backing_file_path !~ /^\Q${ovf_dir}\E/) { - die "error parsing $filepath, are you using a symlink ?"; + die "error parsing $filepath, are you using a symlink ?\n"; + } + + if (!-e $backing_file_path) { + die "error parsing $filepath, file seems not to exist at $backing_file_path\n"; } my $virtual_size; if ( !($virtual_size = PVE::Storage::file_size_info($backing_file_path)) ) { - die "error parsing $backing_file_path, size seems to be $virtual_size"; + die "error parsing $backing_file_path, size seems to be $virtual_size\n"; } $pve_disk = {