From e214cda8f57efbe44e5c29a2b3f612780a175e37 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Apr 2020 17:20:23 +0200 Subject: [PATCH] followup: s/targetstorage map/storage map/ for parameter exceptions to reduce duplicated info in the error slightly Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 027bbf6f..88b0ddcc 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2069,7 +2069,7 @@ __PACKAGE__->register_method({ raise_param_exc({ targetstorage => "targetstorage can only by used with migratedfrom." }) if !$migratedfrom; $storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') }; - raise_param_exc({ targetstorage => "failed to parse targetstorage map: $@" }) + raise_param_exc({ targetstorage => "failed to parse storage map: $@" }) if $@; } @@ -3463,7 +3463,7 @@ __PACKAGE__->register_method({ }; my $storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') }; - raise_param_exc({ targetstorage => "failed to parse targetstorage map: $@" }) + raise_param_exc({ targetstorage => "failed to parse storage map: $@" }) if $@; $rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk'])