]> git.proxmox.com Git - qemu-server.git/commitdiff
improve error on '{full, linked} clone not available' error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 May 2017 08:39:45 +0000 (10:39 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 24 May 2017 09:29:26 +0000 (11:29 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index c566c4d8d2a153c3371d1031ea89e3f6480dfad4..41ffad5331a24aa055c345313a0227ee09ed9c5c 100644 (file)
@@ -2448,12 +2448,12 @@ __PACKAGE__->register_method({
                        $newconf->{$opt} = $value; # simply copy configuration
                    } else {
                        if ($param->{full}) {
-                           die "Full clone feature is not available"
+                           die "Full clone feature is not supported for drive '$opt'\n"
                                if !PVE::Storage::volume_has_feature($storecfg, 'copy', $drive->{file}, $snapname, $running);
                            $fullclone->{$opt} = 1;
                        } else {
                            # not full means clone instead of copy
-                           die "Linked clone feature is not available"
+                           die "Linked clone feature is not supported for drive '$opt'\n"
                                if !PVE::Storage::volume_has_feature($storecfg, 'clone', $drive->{file}, $snapname, $running);
                        }
                        $drives->{$opt} = $drive;