mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 13:36:15 +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 = $@) {
|
||||
eval {
|
||||
my $conffile = PVE::QemuConfig->config_file($vmid);
|
||||
unlink($conffile)
|
||||
or die "failed to remove config file: $@\n";
|
||||
unlink($conffile) or die "failed to remove config file: $!\n";
|
||||
};
|
||||
warn $@ if $@;
|
||||
die $err;
|
||||
|
Loading…
Reference in New Issue
Block a user