mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-28 18:30:17 +00:00
qm: remote migration: improve error when storage cannot be found
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>
This commit is contained in:
parent
3f9c3a04d1
commit
814053b4c3
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user