pvesm import: make error messages consistent

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2019-11-27 13:48:59 +01:00
committed by Thomas Lamprecht
parent f105c1766e
commit b5eff97d66

View File

@ -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;
}