Francois Gouget : testbot/web: Make sure VM deletion errors are reported.
Alexandre Julliard
julliard at winehq.org
Wed Mar 2 14:36:02 CST 2022
Module: tools
Branch: master
Commit: 501d35df9e27fff00336684cca68c7d634389c65
URL: https://source.winehq.org/git/tools.git/?a=commit;h=501d35df9e27fff00336684cca68c7d634389c65
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Mar 2 17:05:15 2022 +0100
testbot/web: Make sure VM deletion errors are reported.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/web/admin/VMsList.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testbot/web/admin/VMsList.pl b/testbot/web/admin/VMsList.pl
index 832c3bd..283c542 100644
--- a/testbot/web/admin/VMsList.pl
+++ b/testbot/web/admin/VMsList.pl
@@ -59,8 +59,8 @@ sub OnItemAction($$$$)
if ($Action eq "Delete")
{
$Item->Role("deleted");
- my ($ErrProperty, $ErrMessage) = $Item->Save();
- return ! defined($ErrMessage);
+ (my $ErrProperty, $self->{ErrMessage}) = $Item->Save();
+ return !defined $self->{ErrMessage};
}
return $self->SUPER::OnItemAction($CollectionBlock, $Item, $Action);
More information about the wine-cvs
mailing list