]> git.proxmox.com Git - pve-storage.git/commitdiff
APIAGE followup: fix typo and print versions in error message
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Nov 2018 11:18:03 +0000 (12:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Nov 2018 11:18:03 +0000 (12:18 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage.pm

index 64b3fc9a3ac36d113bff9cad98eca4264296f653..8b9957dedac4fd93e971d0d417f2a759f7242023 100755 (executable)
@@ -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();