From ce3fbcd4563d632906c2eda23258a4e5f698f826 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 15 Nov 2021 09:21:48 +0100 Subject: [PATCH] api: update: fix missing newline in background-delayed task error this error path is mostly used for re-attaching disks and the like, and the "check if task is already done" part uses a method to read the task status that will never include a trailing newline, so add it our self to avoid "... at /usr/share/perl5/PVE/API2/Qemu.pm line 1480. (500)" Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 28e09120..6830009d 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1477,7 +1477,7 @@ my $update_vm_api = sub { if (!$running) { my $status = PVE::Tools::upid_read_status($upid); return if !PVE::Tools::upid_status_is_error($status); - die $status; + die "failed to update VM $vmid: $status\n"; } }