From a0908caa9983d59d0cd8a9f6a1d2c783ae08d565 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 19 Nov 2018 12:18:03 +0100 Subject: [PATCH] APIAGE followup: fix typo and print versions in error message Signed-off-by: Thomas Lamprecht --- PVE/Storage.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 64b3fc9..8b9957d 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -77,10 +77,11 @@ if ( -d '/usr/share/perl5/PVE/Storage/Custom' ) { if !$modname->can('api'); # Check storage API version and that file is really storage plugin. my $version = $modname->api(); - die "implements an API version newer than current\n" + die "implements an API version newer than current ($version > " . APIVER . ")\n" if $version > APIVER; - die "API version too old, pluse update the plugin\n" - if $version < (APIVER-APIAGE); + my $min_version = (APIVER - APIAGE); + die "API version too old, please update the plugin ($version < $min_version)\n" + if $version < $min_version; import $file; $modname->register(); -- 2.39.2