pvesm import: make error messages consistent
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
f105c1766e
commit
b5eff97d66
@ -1116,7 +1116,7 @@ sub read_common_header($) {
|
||||
sysread($fh, my $size, 8);
|
||||
$size = unpack('Q<', $size);
|
||||
die "import: no size found in export header, aborting.\n" if !defined($size);
|
||||
die "got a bad size (not a multiple of 1K)\n" if ($size&1023);
|
||||
die "import: got a bad size (not a multiple of 1K), aborting.\n" if ($size&1023);
|
||||
# Size is in bytes!
|
||||
return $size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user