mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 15:25:36 +00:00
api/create: print correct error message if cleanup fails
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fc5c194b5d
commit
f1e277cd88
@ -648,8 +648,7 @@ __PACKAGE__->register_method({
|
|||||||
if (my $err = $@) {
|
if (my $err = $@) {
|
||||||
eval {
|
eval {
|
||||||
my $conffile = PVE::QemuConfig->config_file($vmid);
|
my $conffile = PVE::QemuConfig->config_file($vmid);
|
||||||
unlink($conffile)
|
unlink($conffile) or die "failed to remove config file: $!\n";
|
||||||
or die "failed to remove config file: $@\n";
|
|
||||||
};
|
};
|
||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
die $err;
|
die $err;
|
||||||
|
Loading…
Reference in New Issue
Block a user