]> git.proxmox.com Git - qemu-server.git/commitdiff
qm: remote migration: improve error when storage cannot be found
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 9 Jun 2023 07:37:34 +0000 (09:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 07:49:40 +0000 (09:49 +0200)
It can also be a permission issue, so the current error can be
a bit confusing.

Reported in the community forum:
https://forum.proxmox.com/threads/120619/post-562660

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/CLI/qm.pm

index c3c298241255265711c882129a5ae89a0262d7f2..b17b4fe25d5bd21e9fe188e82998972b1dc29c36 100755 (executable)
@@ -251,7 +251,7 @@ __PACKAGE__->register_method({
        my $check_remote_storage = sub {
            my ($storage) = @_;
            my $found = [ grep { $_->{storage} eq $storage } @$storages ];
-           die "remote: storage '$storage' does not exist!\n"
+           die "remote: storage '$storage' does not exist (or missing permission)!\n"
                if !@$found;
 
            $found = @$found[0];