[pve-devel] applied: [PATCH storage 2/2] pvesm import: make error messages consistent

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 27 14:37:12 CET 2019


On 11/27/19 1:48 PM, Fabian Grünbichler wrote:
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  PVE/Storage/Plugin.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
> index 963c391..d0f1df6 100644
> --- a/PVE/Storage/Plugin.pm
> +++ b/PVE/Storage/Plugin.pm
> @@ -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;
>  }
> 

applied





More information about the pve-devel mailing list